From f5807d9f3a6c96e70912b61fac17120f412b5782 Mon Sep 17 00:00:00 2001 From: ewy Date: Sun, 17 May 2026 01:37:24 +0200 Subject: * integration tests with a pik target to run them * add abstraction for paths to facilitate unit tests * flesh out completion (--install-completion) * do sync init before stateless modes so list knows more --- flags/flags.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'flags/flags.go') diff --git a/flags/flags.go b/flags/flags.go index f349ce7..d8ac537 100644 --- a/flags/flags.go +++ b/flags/flags.go @@ -26,7 +26,8 @@ var ( List = pflag.BoolP("list", "l", false, "list available targets and exit") // Inline means pik does not go to the terminal alt screen // unused because it is accessed by `flags.Get("inline")` - Inline = pflag.BoolP("inline", "i", false, "if true, will force alt screen; if forced false, will disable alt screen") - Edit = pflag.Bool("edit", false, "edit the target in $EDITOR") - Completion = pflag.Bool("completion", false, "echo completion scrip and exit") + Inline = pflag.BoolP("inline", "i", false, "if true, will force alt screen; if forced false, will disable alt screen") + Edit = pflag.Bool("edit", false, "edit the target in $EDITOR") + Completion = pflag.Bool("completion", false, "echo completion scrip and exit") + InstallCompletion = pflag.Bool("install-completion", false, "install completion script to shell rc") ) -- cgit v1.3.1