Skip to content

Commit

Permalink
git: credential-store
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 29, 2023
1 parent 01f4ff8 commit 74dad65
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
24 changes: 24 additions & 0 deletions completers/git_completer/cmd/credentialStore.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var credentialStoreCmd = &cobra.Command{
Use: "credential-store",
Short: "Helper to store credentials on disk",
Run: func(cmd *cobra.Command, args []string) {},
GroupID: groups[group_low_level_helper].ID,
}

func init() {
carapace.Gen(credentialStoreCmd).Standalone()

credentialStoreCmd.Flags().String("file", "", "fetch and store credentials in <path>")
rootCmd.AddCommand(credentialStoreCmd)

carapace.Gen(credentialStoreCmd).FlagCompletion(carapace.ActionMap{
"file": carapace.ActionFiles(),
})
}
19 changes: 0 additions & 19 deletions completers/git_completer/cmd/credential_store_generated.go

This file was deleted.

0 comments on commit 74dad65

Please sign in to comment.