From 2f0218f567b4765499af0c74c01cb58c81919b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sat, 17 Oct 2020 20:32:35 +0100 Subject: [PATCH] Further cleanup / refactoring --- z/project.go | 9 +++++++++ z/projectCmd.go | 5 ----- z/task.go | 9 +++++++++ z/taskCmd.go | 5 ----- 4 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 z/project.go create mode 100644 z/task.go diff --git a/z/project.go b/z/project.go new file mode 100644 index 0000000..2f59600 --- /dev/null +++ b/z/project.go @@ -0,0 +1,9 @@ +package z + +import ( +) + +type Project struct { + Name string `json:"name,omitempty"` + Color string `json:"color,omitempty"` +} diff --git a/z/projectCmd.go b/z/projectCmd.go index 13ad288..50eb936 100644 --- a/z/projectCmd.go +++ b/z/projectCmd.go @@ -10,11 +10,6 @@ import ( var projectColor string -type Project struct { - Name string `json:"name,omitempty"` - Color string `json:"color,omitempty"` -} - var projectCmd = &cobra.Command{ Use: "project ([flags]) [project]", Short: "Project settings", diff --git a/z/task.go b/z/task.go new file mode 100644 index 0000000..02cc9e7 --- /dev/null +++ b/z/task.go @@ -0,0 +1,9 @@ +package z + +import ( +) + +type Task struct { + Name string `json:"name,omitempty"` + GitRepository string `json:"gitRepository,omitempty"` +} diff --git a/z/taskCmd.go b/z/taskCmd.go index 728422f..a8cc5c3 100644 --- a/z/taskCmd.go +++ b/z/taskCmd.go @@ -10,11 +10,6 @@ import ( var taskGitRepository string -type Task struct { - Name string `json:"name,omitempty"` - GitRepository string `json:"gitRepository,omitempty"` -} - var taskCmd = &cobra.Command{ Use: "task ([flags]) [task]", Short: "Task settings",