Skip to content
Snippets Groups Projects

Northbound Interface

Merged Ghost User requested to merge grpc-nbi into develop
5 files
+ 11
57
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 0
6
@@ -36,8 +36,6 @@ import (
@@ -36,8 +36,6 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/cobra"
)
)
var deviceName string
// addDeviceCmd represents the addDevice command
// addDeviceCmd represents the addDevice command
var addDeviceCmd = &cobra.Command{
var addDeviceCmd = &cobra.Command{
Use: "add-device",
Use: "add-device",
@@ -64,9 +62,5 @@ var deviceName string
@@ -64,9 +62,5 @@ var deviceName string
func init() {
func init() {
cliCmd.AddCommand(addDeviceCmd)
cliCmd.AddCommand(addDeviceCmd)
<<<<<<< HEAD
addDeviceCmd.Flags().StringVar(&deviceName, "name", "", "add a device name (optional)")
addDeviceCmd.Flags().StringVar(&deviceName, "name", "", "add a device name (optional)")
=======
addDeviceCmd.PersistentFlags().StringVarP(&deviceName, "device-name", "n", "", "Human readable device name.")
>>>>>>> 8e2fe42b (Let user set a name for a device or autogenerate it)
}
}
Loading