mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-24 04:30:02 +01:00
34 lines
885 B
Go
34 lines
885 B
Go
/*
|
|
Copyright © 2023 Laura Kalb <dev@lauka.net>
|
|
*/
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// deleteCmd represents the delete command
|
|
var ipdeleteCmd = &cobra.Command{
|
|
Use: "delete ipaddress",
|
|
Short: "Delete an IP address",
|
|
Long: `Delete an IP address`,
|
|
Aliases: []string{"d"},
|
|
Args: cobra.ExactArgs(1),
|
|
Example: "ipam ip delete 192.168.0.1",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
ipCmd.AddCommand(ipdeleteCmd)
|
|
|
|
// Here you will define your flags and configuration settings.
|
|
|
|
// Cobra supports Persistent Flags which will work for this command
|
|
// and all subcommands, e.g.:
|
|
// deleteCmd.PersistentFlags().String("foo", "", "A help for foo")
|
|
|
|
// Cobra supports local flags which will only run when this command
|
|
// is called directly, e.g.:
|
|
// deleteCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
|
}
|