🚸 Ease of use
Added an example.
This commit is contained in:
parent
d33765751c
commit
5242188ffa
@ -9,9 +9,10 @@ import (
|
|||||||
|
|
||||||
// Create command
|
// Create command
|
||||||
var createCmd = &cobra.Command{
|
var createCmd = &cobra.Command{
|
||||||
Use: "create",
|
Use: "create",
|
||||||
Short: "Create an alert",
|
Short: "Create an alert",
|
||||||
Args: cobra.MinimumNArgs(2),
|
Example: "create <name> <ip>",
|
||||||
|
Args: cobra.MinimumNArgs(2),
|
||||||
Run: func(_ *cobra.Command, args []string) {
|
Run: func(_ *cobra.Command, args []string) {
|
||||||
utils.CheckColor()
|
utils.CheckColor()
|
||||||
alert.Create(args[0], args[1])
|
alert.Create(args[0], args[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user