(_ func())
| 5 | import "github.com/coder/serpent" |
| 6 | |
| 7 | func (r *RootCmd) Server(_ func()) *serpent.Command { |
| 8 | root := &serpent.Command{ |
| 9 | Use: "server", |
| 10 | Short: "Start a Coder server", |
| 11 | // We accept RawArgs so all commands and flags are accepted. |
| 12 | RawArgs: true, |
| 13 | Hidden: true, |
| 14 | Handler: func(inv *serpent.Invocation) error { |
| 15 | SlimUnsupported(inv.Stderr, "server") |
| 16 | return nil |
| 17 | }, |
| 18 | } |
| 19 | |
| 20 | return root |
| 21 | } |
nothing calls this directly
no test coverage detected