add(cli): cli interface for push, pull and version
This commit is contained in:
21
cmd/task.go
Normal file
21
cmd/task.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package cmd
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(taskCmd)
|
||||
}
|
||||
|
||||
var taskCmd = &cobra.Command{
|
||||
Use: "task",
|
||||
Short: "Taskwarrior wrapper with automatic context for current git project",
|
||||
Long: `Taskwarrior wrapper with automatic context for current git project.
|
||||
This allows the usage of common taskwarrior commands with appling the context for the current git project,
|
||||
which filters all the tasks automatically for the current project. The context will be disabled as soon as the provided command has been executed.
|
||||
There is no need for the user to disable / enable context specific configurations.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
// TODO: run taskwarrior context enabling (maybe even creating the context)
|
||||
// TODO: run taskwarrior command with provided args
|
||||
// TODO: run taskwarrior context disableing
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user