mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-14 11:44:32 +00:00
21 lines
596 B
Go
21 lines
596 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var credential_cacheCmd = &cobra.Command{
|
|
Use: "credential-cache",
|
|
Short: "Helper to temporarily store passwords in memory",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
GroupID: groups[group_low_level_helper].ID,
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(credential_cacheCmd).Standalone()
|
|
credential_cacheCmd.Flags().String("socket", "", "path of cache-daemon socket")
|
|
credential_cacheCmd.Flags().String("timeout", "", "number of seconds to cache credentials")
|
|
rootCmd.AddCommand(credential_cacheCmd)
|
|
}
|