mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
This is an alternative approach to #9519 and removes 2 MB instead of 1 MB (1.2 MB accounted for by embedded migration SQL files). Combined with #9481, #9506, #9508, #9517, a total of 5 MB is removed. Ref: #9380
24 lines
433 B
Go
24 lines
433 B
Go
//go:build slim
|
|
|
|
package cli
|
|
|
|
import (
|
|
"github.com/coder/coder/v2/cli/clibase"
|
|
)
|
|
|
|
func (r *RootCmd) Server(_ func()) *clibase.Cmd {
|
|
root := &clibase.Cmd{
|
|
Use: "server",
|
|
Short: "Start a Coder server",
|
|
// We accept RawArgs so all commands and flags are accepted.
|
|
RawArgs: true,
|
|
Hidden: true,
|
|
Handler: func(inv *clibase.Invocation) error {
|
|
SlimUnsupported(inv.Stderr, "server")
|
|
return nil
|
|
},
|
|
}
|
|
|
|
return root
|
|
}
|