Further cleanup / refactoring
This commit is contained in:
parent
b924131c81
commit
2f0218f567
4 changed files with 18 additions and 10 deletions
9
z/project.go
Normal file
9
z/project.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package z
|
||||||
|
|
||||||
|
import (
|
||||||
|
)
|
||||||
|
|
||||||
|
type Project struct {
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
Color string `json:"color,omitempty"`
|
||||||
|
}
|
|
@ -10,11 +10,6 @@ import (
|
||||||
|
|
||||||
var projectColor string
|
var projectColor string
|
||||||
|
|
||||||
type Project struct {
|
|
||||||
Name string `json:"name,omitempty"`
|
|
||||||
Color string `json:"color,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
var projectCmd = &cobra.Command{
|
var projectCmd = &cobra.Command{
|
||||||
Use: "project ([flags]) [project]",
|
Use: "project ([flags]) [project]",
|
||||||
Short: "Project settings",
|
Short: "Project settings",
|
||||||
|
|
9
z/task.go
Normal file
9
z/task.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package z
|
||||||
|
|
||||||
|
import (
|
||||||
|
)
|
||||||
|
|
||||||
|
type Task struct {
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
GitRepository string `json:"gitRepository,omitempty"`
|
||||||
|
}
|
|
@ -10,11 +10,6 @@ import (
|
||||||
|
|
||||||
var taskGitRepository string
|
var taskGitRepository string
|
||||||
|
|
||||||
type Task struct {
|
|
||||||
Name string `json:"name,omitempty"`
|
|
||||||
GitRepository string `json:"gitRepository,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
var taskCmd = &cobra.Command{
|
var taskCmd = &cobra.Command{
|
||||||
Use: "task ([flags]) [task]",
|
Use: "task ([flags]) [task]",
|
||||||
Short: "Task settings",
|
Short: "Task settings",
|
||||||
|
|
Loading…
Reference in a new issue