config.go 532 B

123456789101112131415161718
  1. package cmd
  2. import (
  3. "github.com/claudiodangelis/qrcp/config"
  4. "github.com/spf13/cobra"
  5. )
  6. func configCmdFunc(command *cobra.Command, args []string) error {
  7. return config.Wizard(configFlag, listallinterfacesFlag)
  8. }
  9. var configCmd = &cobra.Command{
  10. Use: "config",
  11. Short: "Configure qrcp",
  12. Long: "Run an interactive configuration wizard for qrcp. With this command you can configure which network interface and port should be used to create the file server.",
  13. Aliases: []string{"c", "cfg"},
  14. RunE: configCmdFunc,
  15. }