feat: make flags in one place (#4452)

This commit is contained in:
Garrett Delfosse
2022-10-11 15:16:19 +00:00
committed by GitHub
parent b1a095e486
commit a70278e0e1
10 changed files with 246 additions and 201 deletions
+1 -3
View File
@@ -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