22 lines
863 B
Go
22 lines
863 B
Go
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
|
|
},
|
|
}
|