Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func newInitCommand(cnf *config.Config, assets *vendorization.VendorAssets) *cob
}

cmd.Flags().BoolVar(&useAI, "ai", false, "Use AI configuration")
cmd.Flags().StringVar(&initOptions.ExtraContext, "context", "",
"Add extra context for AI configuration")
cmd.Flags().BoolVar(&initOptions.OnlyShowDigest, "digest", false,
"Only show the repository digest (the AI configuration input), without sending it")

Expand Down
14 changes: 14 additions & 0 deletions commands/list_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func innerProjectInitCommand(cnf *config.Config) Command {
Commandline: "--ai=false",
Description: "Disable AI mode",
},
{
Commandline: "--ai --context='Use PostgreSQL for the database'",
Description: "Add context for AI configuration",
},
},
Definition: Definition{
Arguments: &orderedmap.OrderedMap[string, Argument]{},
Expand All @@ -54,6 +58,16 @@ func innerProjectInitCommand(cnf *config.Config) Command {
Default: Any{any: false},
},
},
orderedmap.Pair[string, Option]{
Key: "context",
Value: Option{
Name: "--context",
AcceptValue: true,
IsValueRequired: true,
Description: "Add extra context for AI configuration",
Default: Any{any: ""},
},
},
orderedmap.Pair[string, Option]{
Key: "digest",
Value: Option{
Expand Down