github.com/crowdsecurity/crowdsec@v1.6.1/cmd/crowdsec-cli/hubscenario.go (about) 1 package main 2 3 import ( 4 "github.com/crowdsecurity/crowdsec/pkg/cwhub" 5 ) 6 7 func NewCLIScenario() *cliItem { 8 return &cliItem{ 9 name: cwhub.SCENARIOS, 10 singular: "scenario", 11 oneOrMore: "scenario(s)", 12 help: cliHelp{ 13 example: `cscli scenarios list -a 14 cscli scenarios install crowdsecurity/ssh-bf crowdsecurity/http-probing 15 cscli scenarios inspect crowdsecurity/ssh-bf crowdsecurity/http-probing 16 cscli scenarios upgrade crowdsecurity/ssh-bf crowdsecurity/http-probing 17 cscli scenarios remove crowdsecurity/ssh-bf crowdsecurity/http-probing 18 `, 19 }, 20 installHelp: cliHelp{ 21 example: `cscli scenarios install crowdsecurity/ssh-bf crowdsecurity/http-probing`, 22 }, 23 removeHelp: cliHelp{ 24 example: `cscli scenarios remove crowdsecurity/ssh-bf crowdsecurity/http-probing`, 25 }, 26 upgradeHelp: cliHelp{ 27 example: `cscli scenarios upgrade crowdsecurity/ssh-bf crowdsecurity/http-probing`, 28 }, 29 inspectHelp: cliHelp{ 30 example: `cscli scenarios inspect crowdsecurity/ssh-bf crowdsecurity/http-probing`, 31 }, 32 listHelp: cliHelp{ 33 example: `cscli scenarios list 34 cscli scenarios list -a 35 cscli scenarios list crowdsecurity/ssh-bf crowdsecurity/http-probing 36 37 List only enabled scenarios unless "-a" or names are specified.`, 38 }, 39 } 40 }