-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2584 from aftix/push-sxxkkryuxqsx
jj_completer: Updated to jj v0.23.0
- Loading branch information
Showing
19 changed files
with
100 additions
and
218 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var config_unsetCmd = &cobra.Command{ | ||
Use: "unset [OPTIONS] <--user|--repo> <NAME>", | ||
Short: "Update config file to unset the given option", | ||
Aliases: []string{}, | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(config_unsetCmd).Standalone() | ||
|
||
config_unsetCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')") | ||
config_unsetCmd.Flags().Bool("repo", false, "Target the repo-level config") | ||
config_unsetCmd.Flags().Bool("user", false, "Target the user-level config") | ||
configCmd.AddCommand(config_unsetCmd) | ||
|
||
carapace.Gen(config_unsetCmd).PositionalCompletion( | ||
jj.ActionConfigs(true).MultiParts("."), | ||
) | ||
} |
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,29 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var file_annotateCmd = &cobra.Command{ | ||
Use: "annotate [OPTIONS] <PATHS>...", | ||
Short: "Show the source change for each line of the target file", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(file_annotateCmd).Standalone() | ||
|
||
file_annotateCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')") | ||
file_annotateCmd.Flags().StringP("revision", "r", "@", "Revision to start at") | ||
fileCmd.AddCommand(file_annotateCmd) | ||
|
||
carapace.Gen(file_annotateCmd).FlagCompletion(carapace.ActionMap{ | ||
"revision": jj.ActionRevs(jj.RevOption{}.Default()).UniqueList(","), | ||
}) | ||
|
||
carapace.Gen(file_annotateCmd).PositionalAnyCompletion( | ||
carapace.ActionFiles().FilterArgs(), | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,27 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/jj" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var simplifyParentsCmd = &cobra.Command{ | ||
Use: "simplify-parents <--source <SOURCE>|--revisions <REVISIONS>>", | ||
Short: "Simplify parent edges for the specified revision(s)", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(simplifyParentsCmd).Standalone() | ||
|
||
simplifyParentsCmd.Flags().BoolP("help", "h", false, "Print help (see more with '--help')") | ||
simplifyParentsCmd.Flags().StringArrayP("revisions", "r", []string{}, "Simplify specified revision(s) (can be repeated)") | ||
simplifyParentsCmd.Flags().StringArrayP("source", "s", []string{}, "Simplify specified revision(s) together with their trees of descendants (can be repeated)") | ||
rootCmd.AddCommand(simplifyParentsCmd) | ||
|
||
carapace.Gen(simplifyParentsCmd).FlagCompletion(carapace.ActionMap{ | ||
"revisions": jj.ActionRevs(jj.RevOption{}.Default()).FilterArgs(), | ||
"source": jj.ActionRevs(jj.RevOption{}.Default()).FilterArgs(), | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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