mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +08:00
feat: make flags in one place (#4452)
This commit is contained in:
+1
-3
@@ -99,9 +99,7 @@ func Core() []*cobra.Command {
|
||||
}
|
||||
|
||||
func AGPL() []*cobra.Command {
|
||||
df := deployment.Flags()
|
||||
all := append(Core(), Server(df, func(_ context.Context, o *coderd.Options) (*coderd.API, error) {
|
||||
o.DeploymentFlags = &df
|
||||
all := append(Core(), Server(deployment.Flags(), func(_ context.Context, o *coderd.Options) (*coderd.API, error) {
|
||||
return coderd.New(o), nil
|
||||
}))
|
||||
return all
|
||||
|
||||
Reference in New Issue
Block a user