mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-24 04:30:02 +01:00
remove command from ip and subnet command
This commit is contained in:
parent
3590ec1c1e
commit
eb6185983f
2 changed files with 3 additions and 18 deletions
|
@ -5,8 +5,6 @@ Copyright © 2023 Laura Kalb <dev@lauka.net>
|
||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,9 +14,6 @@ var ipCmd = &cobra.Command{
|
||||||
Short: "manage ip addresses",
|
Short: "manage ip addresses",
|
||||||
Long: `Add, delete, edit and show IP addresses`,
|
Long: `Add, delete, edit and show IP addresses`,
|
||||||
Aliases: []string{"i"},
|
Aliases: []string{"i"},
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
|
||||||
fmt.Println("ip called")
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -5,25 +5,15 @@ Copyright © 2023 Laura Kalb <dev@lauka.net>
|
||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
// subnetCmd represents the subnet command
|
// subnetCmd represents the subnet command
|
||||||
var subnetCmd = &cobra.Command{
|
var subnetCmd = &cobra.Command{
|
||||||
Use: "subnet",
|
Use: "subnet",
|
||||||
Short: "manage ip subnets",
|
Short: "Manage ip subnets",
|
||||||
Long: `A longer description that spans multiple lines and likely contains examples
|
Long: `Manage ip subnets`,
|
||||||
and usage of using your command. For example:
|
|
||||||
|
|
||||||
Cobra is a CLI library for Go that empowers applications.
|
|
||||||
This application is a tool to generate the needed files
|
|
||||||
to quickly create a Cobra application.`,
|
|
||||||
Aliases: []string{"s"},
|
Aliases: []string{"s"},
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
|
||||||
fmt.Println("subnet called")
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue