@@ -41,6 +41,10 @@ func innerProjectInitCommand(cnf *config.Config) Command {
4141 Commandline : "--ai=false" ,
4242 Description : "Disable AI mode" ,
4343 },
44+ {
45+ Commandline : "--ai --context='Use PostgreSQL for the database'" ,
46+ Description : "Add context for AI configuration" ,
47+ },
4448 },
4549 Definition : Definition {
4650 Arguments : & orderedmap.OrderedMap [string , Argument ]{},
@@ -54,6 +58,16 @@ func innerProjectInitCommand(cnf *config.Config) Command {
5458 Default : Any {any : false },
5559 },
5660 },
61+ orderedmap.Pair [string , Option ]{
62+ Key : "context" ,
63+ Value : Option {
64+ Name : "--context" ,
65+ AcceptValue : true ,
66+ IsValueRequired : true ,
67+ Description : "Add extra context for AI configuration" ,
68+ Default : Any {any : "" },
69+ },
70+ },
5771 orderedmap.Pair [string , Option ]{
5872 Key : "digest" ,
5973 Value : Option {
@@ -224,8 +238,12 @@ func (c *Command) HelpPage(cnf *config.Config) string {
224238 fmt .Fprintln (writer , color .YellowString ("Examples:" ))
225239 for _ , example := range c .Examples {
226240 fmt .Fprintln (writer , indentLines (example .Description .String ()+ ":" , 1 ))
241+ usage := cnf .Application .Executable + " " + c .Name .String ()
242+ if len (c .Usage ) > 0 {
243+ usage = c .Usage [0 ]
244+ }
227245 fmt .Fprintln (writer ,
228- color .GreenString (fmt .Sprintf (" %s %s %s " , cnf . Application . Executable , c . Name . String () , example .Commandline )))
246+ color .GreenString (fmt .Sprintf (" %s %s" , usage , example .Commandline )))
229247 fmt .Fprintln (writer , "" )
230248 }
231249 }
0 commit comments