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:
Shubham Minglani
2018-03-29 17:32:06 +05:30
parent 4bf21c01d1
commit ccaa949a0b
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {