-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added ``-T/--template` flags to `jj branch list` - Added completions for `jj tag` - `--insert-after` and `--insert-before` on `jj new` now take revisions - Added `--allow-empty-description` flag to `jj git push` - Added new revsets `mutable()`, `immutable()`, and `reachable(srcs, domain)`
- Loading branch information
Showing
8 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var fixCmd = &cobra.Command{ | ||
Use: "fix [OPTIONS]", | ||
Short: "Update files with formatting fixes or other changes", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(fixCmd).Standalone() | ||
|
||
fixCmd.Flags().StringSliceP("source", "s", nil, "Fix files in specified revision(s) and their descendants") | ||
rootCmd.AddCommand(fixCmd) | ||
|
||
carapace.Gen(fixCmd).FlagCompletion(carapace.ActionMap{ | ||
"source": jj.ActionRevSets(jj.RevOption{}.Default()), | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var tagCmd = &cobra.Command{ | ||
Use: "tag [OPTIONS] <COMMAND>", | ||
Short: "Manage Tags", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(tagCmd).Standalone() | ||
|
||
rootCmd.AddCommand(tagCmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var tag_helpCmd = &cobra.Command{ | ||
Use: "help", | ||
Short: "Print this message or the help of given subcommand(s)", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(tag_helpCmd).Standalone() | ||
|
||
tagCmd.AddCommand(tag_helpCmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var tag_listCmd = &cobra.Command{ | ||
Use: "list [OPTIONS] [NAMES]...", | ||
Short: "List tags", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(tag_listCmd).Standalone() | ||
|
||
tag_listCmd.Flags().StringP("template", "T", "", "Render each tag using the given template") | ||
tagCmd.AddCommand(tag_listCmd) | ||
|
||
carapace.Gen(tag_listCmd).PositionalAnyCompletion( | ||
jj.ActionTags(), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters