From dc673b96a4bb7e9c7947df410db81affe1440473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gannaz?= Date: Thu, 4 Jan 2024 10:52:17 +0100 Subject: [PATCH 1/2] bash -x --- completers/bash_completer/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/completers/bash_completer/cmd/root.go b/completers/bash_completer/cmd/root.go index cc418c4bc8..5b8cad5dd7 100644 --- a/completers/bash_completer/cmd/root.go +++ b/completers/bash_completer/cmd/root.go @@ -36,6 +36,7 @@ func init() { rootCmd.Flags().BoolS("s", "s", false, "then commands are read from the standard input") rootCmd.Flags().BoolP("verbose", "v", false, "verbose mode") rootCmd.Flags().Bool("version", false, "Show version information ") + rootCmd.Flags().Bool("x", false, "Print commands and their arguments as they are executed.") carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{ "init-file": carapace.ActionFiles(), From 11fd449606e17de60fed56a354b97355f873a42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gannaz?= Date: Thu, 4 Jan 2024 10:52:46 +0100 Subject: [PATCH 2/2] bash: remove multiple spaces in descriptions --- completers/bash_completer/cmd/root.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/completers/bash_completer/cmd/root.go b/completers/bash_completer/cmd/root.go index 5b8cad5dd7..f25d478f63 100644 --- a/completers/bash_completer/cmd/root.go +++ b/completers/bash_completer/cmd/root.go @@ -20,18 +20,18 @@ func init() { carapace.Gen(rootCmd).Standalone() rootCmd.Flags().BoolS("c", "c", false, "commands are read from the first non-option argument command_string") - rootCmd.Flags().Bool("debugger", false, "Arrange for the debugger profile to be executed before the shell starts.") + rootCmd.Flags().Bool("debugger", false, "Arrange for the debugger profile to be executed before the shell starts.") rootCmd.Flags().Bool("dump-po-strings", false, "Equivalent to -D, but the output is in the GNU gettext po file format") - rootCmd.Flags().BoolP("dump-strings", "D", false, "A list of all double-quoted strings preceded by $ is printed on the standard output.") + rootCmd.Flags().BoolP("dump-strings", "D", false, "A list of all double-quoted strings preceded by $ is printed on the standard output.") rootCmd.Flags().BoolS("i", "i", false, "If the -i option is present, the shell is interactive.") rootCmd.Flags().String("init-file", "", "") - rootCmd.Flags().BoolP("login", "l", false, "act as if invoked as a login shell") + rootCmd.Flags().BoolP("login", "l", false, "act as if invoked as a login shell") rootCmd.Flags().Bool("noediting", false, "do not use the GNU readline library to read command lines") rootCmd.Flags().Bool("noprofile", false, "skip profile initialization files") rootCmd.Flags().Bool("norc", false, "skip ~/.bashrc") rootCmd.Flags().Bool("posix", false, "match posix behavior") rootCmd.Flags().BoolS("r", "r", false, "restricted shell") - rootCmd.Flags().String("rcfile", "", "execute commands from file instead of the default") + rootCmd.Flags().String("rcfile", "", "execute commands from file instead of the default") rootCmd.Flags().Bool("restricted", false, "The shell becomes restricted.") rootCmd.Flags().BoolS("s", "s", false, "then commands are read from the standard input") rootCmd.Flags().BoolP("verbose", "v", false, "verbose mode")