This repository has been archived on 2025-10-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gitwarrior/cmd/task.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
},
}