mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-23 08:01:15 +00:00
22 lines
609 B
Go
22 lines
609 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var devicesCmd = &cobra.Command{
|
|
Use: "devices",
|
|
Short: "List all connected devices",
|
|
Run: func(cmd *cobra.Command, args []string) {},
|
|
}
|
|
|
|
func init() {
|
|
carapace.Gen(devicesCmd).Standalone()
|
|
|
|
devicesCmd.Flags().String("device-timeout", "", "Time in seconds to wait for devices to attach.")
|
|
devicesCmd.Flags().BoolP("help", "h", false, "Print this usage information.")
|
|
devicesCmd.Flags().Bool("machine", false, "Output device information in machine readable structured JSON format.")
|
|
rootCmd.AddCommand(devicesCmd)
|
|
}
|