diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-22 16:58:00 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-22 16:58:00 +0300 |
| commit | 8a83fbf747bda27f5859ad84c2f20a9afb753e39 (patch) | |
| tree | e2585f906485e89f6d4417a5d1d3d04f9c442ce4 /internal/task/task.go | |
| parent | b140c36cd8bb3d20c7211fe672b9d5674c9f0d3b (diff) | |
Clean up unused RunArgs comments
Diffstat (limited to 'internal/task/task.go')
| -rw-r--r-- | internal/task/task.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/task/task.go b/internal/task/task.go index 5f19482..b20eef0 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -86,24 +86,6 @@ func AddLine(line string) error { return AddArgs(fields) } -// RunArgs executes "task" with the given arguments. Each item in args is -// passed as a separate command-line argument. -func RunArgs(args []string) error { - cmd := exec.Command("task", args...) - return cmd.Run() -} - -// RunLine splits the provided line into shell words and executes "task" with -// the resulting arguments. This allows callers to run arbitrary Taskwarrior -// commands directly. -func RunLine(line string) error { - fields, err := shlex.Split(line) - if err != nil { - return err - } - return RunArgs(fields) -} - // Export retrieves all tasks using `task export rc.json.array=off` and parses // the JSON output into a slice of Task structs. // Export retrieves tasks using `task <filter> export rc.json.array=off` and parses |
