mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-30 22:22:51 +03:00
25 lines
550 B
Go
25 lines
550 B
Go
//go:build !noautofill
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/quexten/goldwarden/autofill"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var autofillCmd = &cobra.Command{
|
|
Use: "autofill",
|
|
Short: "Autofill credentials",
|
|
Long: `Autofill credentials`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
layout := cmd.Flag("layout").Value.String()
|
|
autofill.Run(layout, commandClient)
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(autofillCmd)
|
|
autofillCmd.PersistentFlags().String("layout", "qwerty", "")
|
|
autofillCmd.PersistentFlags().Bool("use-copy-paste", false, "")
|
|
}
|