-
Notifications
You must be signed in to change notification settings - Fork 23
/
task.go
30 lines (26 loc) · 944 Bytes
/
task.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package task
import (
"github.com/lucassabreu/clockify-cli/pkg/cmd/task/add"
del "github.com/lucassabreu/clockify-cli/pkg/cmd/task/delete"
"github.com/lucassabreu/clockify-cli/pkg/cmd/task/done"
"github.com/lucassabreu/clockify-cli/pkg/cmd/task/edit"
"github.com/lucassabreu/clockify-cli/pkg/cmd/task/list"
quickadd "github.com/lucassabreu/clockify-cli/pkg/cmd/task/quick-add"
"github.com/lucassabreu/clockify-cli/pkg/cmdutil"
"github.com/spf13/cobra"
)
// NewCmdTask represents the client command
func NewCmdTask(f cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "task",
Aliases: []string{"tasks"},
Short: "Work with Clockify tasks",
}
cmd.AddCommand(list.NewCmdList(f, nil))
cmd.AddCommand(add.NewCmdAdd(f, nil))
cmd.AddCommand(quickadd.NewCmdQuickAdd(f, nil))
cmd.AddCommand(edit.NewCmdEdit(f, nil))
cmd.AddCommand(del.NewCmdDelete(f, nil))
cmd.AddCommand(done.NewCmdDone(f, nil))
return cmd
}