Files
coder/enterprise/cli/provisionerdaemons_slim.go
T
Mathias Fredriksson d2115941b7 refactor(cli)!: remove reset-password from slim binary (#9520)
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
2023-09-04 19:38:53 +03:00

25 lines
502 B
Go

//go:build slim
package cli
import (
agplcli "github.com/coder/coder/v2/cli"
"github.com/coder/coder/v2/cli/clibase"
)
func (r *RootCmd) provisionerDaemons() *clibase.Cmd {
cmd := &clibase.Cmd{
Use: "provisionerd",
Short: "Manage provisioner daemons",
// We accept RawArgs so all commands and flags are accepted.
RawArgs: true,
Hidden: true,
Handler: func(inv *clibase.Invocation) error {
agplcli.SlimUnsupported(inv.Stderr, "provisionerd")
return nil
},
}
return cmd
}