add(cli): cli interface for push, pull and version

This commit is contained in:
2023-10-26 00:32:25 +02:00
parent 854dafde01
commit 32a389d464
14 changed files with 750 additions and 64 deletions

21
cmd/task.go Normal file
View 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
},
}