frame out cli tool
This commit is contained in:
21
cmd/cmd/get.go
Normal file
21
cmd/cmd/get.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"gitea.libretechconsulting.com/rmcguire/ubiquiti-clients/cmd/internal/util"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var getCmd = &cobra.Command{
|
||||
Use: "get",
|
||||
Short: "Get device information",
|
||||
Long: `Get device information from configured Ubiquiti devices.`,
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(getCmd)
|
||||
|
||||
getCmd.PersistentFlags().BoolP(util.FLAG_PRETTY, util.FLAG_PRETTY_P, false,
|
||||
"pretty print output with indentation")
|
||||
getCmd.PersistentFlags().BoolP(util.FLAG_COLOR, util.FLAG_COLOR_P, false,
|
||||
"colorize YAML output")
|
||||
}
|
||||
Reference in New Issue
Block a user