-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var attestation_trustedRootCmd = &cobra.Command{ | ||
Use: "trusted-root [--tuf-url <url> --tuf-root <file-path>] [--verify-only]", | ||
Short: "Output trusted_root.jsonl contents, likely for offline verification", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(attestation_trustedRootCmd).Standalone() | ||
|
||
attestation_trustedRootCmd.Flags().String("tuf-root", "", "Path to the TUF root.json file on disk") | ||
attestation_trustedRootCmd.Flags().String("tuf-url", "", "URL to the TUF repository mirror") | ||
attestation_trustedRootCmd.Flags().Bool("verify-only", false, "Don't output trusted_root.jsonl contents") | ||
attestationCmd.AddCommand(attestation_trustedRootCmd) | ||
|
||
carapace.Gen(attestation_trustedRootCmd).FlagCompletion(carapace.ActionMap{ | ||
"tuf-root": carapace.ActionFiles(), | ||
// TODO tuf-url | ||
}) | ||
} |
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 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,25 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/carapace-sh/carapace" | ||
"github.com/carapace-sh/carapace-bin/completers/gh_completer/cmd/action" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var pr_updateBranchCmd = &cobra.Command{ | ||
Use: "update-branch [<number> | <url> | <branch>]", | ||
Short: "Update a pull request branch", | ||
GroupID: "Targeted commands", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(pr_updateBranchCmd).Standalone() | ||
|
||
pr_updateBranchCmd.Flags().Bool("rebase", false, "Update PR branch by rebasing on top of latest base branch") | ||
prCmd.AddCommand(pr_updateBranchCmd) | ||
|
||
carapace.Gen(pr_updateBranchCmd).PositionalCompletion( | ||
action.ActionPullRequests(pr_updateBranchCmd, action.PullRequestOpts{Open: true}), | ||
) | ||
} |
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