22 lines
542 B
Go
22 lines
542 B
Go
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")
|
|
}
|