2023-03-12 13:18:54 +01:00
|
|
|
/*
|
|
|
|
Copyright © 2023 Laura Kalb <dev@lauka.net>
|
|
|
|
*/
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2023-03-25 15:16:26 +01:00
|
|
|
"fmt"
|
2023-03-12 13:18:54 +01:00
|
|
|
|
2023-03-25 15:16:26 +01:00
|
|
|
"github.com/spf13/cobra"
|
2023-03-12 13:18:54 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var ipeditCmd = &cobra.Command{
|
2023-03-25 15:16:26 +01:00
|
|
|
Use: "edit",
|
|
|
|
Short: "Edit an IP address",
|
|
|
|
Long: `Edit an IP address`,
|
|
|
|
Aliases: []string{"e"},
|
2023-03-25 16:51:07 +01:00
|
|
|
//Args: cobra.ExactArgs(1),
|
2023-03-25 15:16:26 +01:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
fmt.Println("not implemented yet; please delete and readd")
|
|
|
|
},
|
2023-03-12 13:18:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2023-03-25 15:16:26 +01:00
|
|
|
ipCmd.AddCommand(ipeditCmd)
|
2023-03-12 13:18:54 +01:00
|
|
|
|
2023-03-25 15:16:26 +01:00
|
|
|
// Here you will define your flags and configuration settings.
|
2023-03-12 13:18:54 +01:00
|
|
|
|
2023-03-25 15:16:26 +01:00
|
|
|
// Cobra supports Persistent Flags which will work for this command
|
|
|
|
// and all subcommands, e.g.:
|
|
|
|
// editCmd.PersistentFlags().String("foo", "", "A help for foo")
|
2023-03-12 13:18:54 +01:00
|
|
|
|
2023-03-25 15:16:26 +01:00
|
|
|
// Cobra supports local flags which will only run when this command
|
|
|
|
// is called directly, e.g.:
|
|
|
|
// editCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
2023-03-12 13:18:54 +01:00
|
|
|
}
|