Skip to content

Commit 6f1404a

Browse files
authored
Merge pull request #3274 from carapace-sh/jj-root
jj: added missing root subcommand
2 parents cc47391 + baed0bf commit 6f1404a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package cmd
2+
3+
import (
4+
"github.com/carapace-sh/carapace"
5+
"github.com/spf13/cobra"
6+
)
7+
8+
var root_rootCmd = &cobra.Command{
9+
Use: "root",
10+
Short: "Show the current workspace root directory (shortcut for `jj workspace root`)",
11+
Run: func(cmd *cobra.Command, args []string) {},
12+
}
13+
14+
func init() {
15+
carapace.Gen(root_rootCmd).Standalone()
16+
17+
root_rootCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')")
18+
rootCmd.AddCommand(root_rootCmd)
19+
}

0 commit comments

Comments
 (0)