use project abstraction

This commit is contained in:
Tomas Kral
2018-03-29 10:24:31 +02:00
parent 4bf21c01d1
commit 805b768274
5 changed files with 21 additions and 35 deletions

View File

@@ -13,11 +13,9 @@ type ProjectInfo struct {
Active bool
}
func GetCurrent(client *occlient.Client) (string, error) {
// TODO: use project abstaction
func GetCurrent(client *occlient.Client) string {
project := client.GetCurrentProjectName()
return project, nil
return project
}
func SetCurrent(client *occlient.Client, project string) error {