mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Rename project commands
This commit renames the commands in project package to be more consistent with the other packages. - ListProjects() is now List() - CreateProjects() is now Create()
This commit is contained in:
@@ -28,7 +28,7 @@ func SetCurrent(client *occlient.Client, project string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func CreateProject(client *occlient.Client, projectName string) error {
|
||||
func Create(client *occlient.Client, projectName string) error {
|
||||
err := client.CreateNewProject(projectName)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "unable to create new project")
|
||||
@@ -36,7 +36,7 @@ func CreateProject(client *occlient.Client, projectName string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func ListProjects(client *occlient.Client) ([]ProjectInfo, error) {
|
||||
func List(client *occlient.Client) ([]ProjectInfo, error) {
|
||||
currentProject := client.GetCurrentProjectName()
|
||||
allProjects, err := client.GetProjectNames()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user