You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
270 B

3 months ago
3 months ago
3 months ago
3 months ago
  1. package shell
  2. import "io"
  3. type command interface {
  4. Name() string
  5. Help() string
  6. Do([]string, *CommandEnv, io.Writer) error
  7. HasTag(tag CommandTag) bool
  8. }
  9. var (
  10. Commands = []command{}
  11. )
  12. type CommandTag string
  13. const (
  14. ResourceHeavy CommandTag = "resourceHeavy"
  15. )