@@ -35,9 +35,7 @@ func Help() {
3535 writeOutputSection (writer )
3636 writeOptionsSection (writer , "Most common options:" , commonHelpOptions ())
3737 writeAISection (writer )
38- writeMutedLeadSection (writer , "Remote:" , "Run -sync first to initialize the local Remote index." )
39- writeOptionsList (writer , remoteHelpOptions ())
40- fmt .Fprintln (writer )
38+ writeRemoteSection (writer )
4139 writeOptionsSection (writer , "Advanced:" , advancedHelpOptions ())
4240
4341 if runtime .GOOS == "windows" {
@@ -125,18 +123,24 @@ func writeIndentedOptionsList(writer io.Writer, indent string, options []helpOpt
125123func writeAISection (writer io.Writer ) {
126124 fmt .Fprintf (writer , "%s\n " , Section ("AI:" ))
127125 fmt .Fprintf (writer , " %s\n \n " , Muted ("Requires SYNAPSEQ_AI_API_KEY." ))
128- writeAISubsection (writer , "Command:" , aiCommandHelpOptions ())
129- writeAISubsection (writer , "Options:" , aiConfigurationHelpOptions ())
130- writeAISubsection (writer , "Environment:" , aiEnvironmentHelpOptions ())
126+ writeHelpSubsection (writer , "Command:" , aiCommandHelpOptions ())
127+ writeHelpSubsection (writer , "Options:" , aiConfigurationHelpOptions ())
128+ writeHelpSubsection (writer , "Environment:" , aiEnvironmentHelpOptions ())
131129 fmt .Fprintf (writer , " %s %s\n \n " , Label ("Priority:" ), Muted ("-ai-* option > SYNAPSEQ_AI_* environment variable > CLI default" ))
132130}
133131
134- func writeAISubsection (writer io.Writer , label string , options []helpOption ) {
132+ func writeHelpSubsection (writer io.Writer , label string , options []helpOption ) {
135133 fmt .Fprintf (writer , " %s\n " , Label (label ))
136134 writeIndentedOptionsList (writer , " " , options )
137135 fmt .Fprintln (writer )
138136}
139137
138+ func writeRemoteSection (writer io.Writer ) {
139+ writeMutedLeadSection (writer , "Remote:" , "Run -sync first to initialize the local Remote index." )
140+ writeHelpSubsection (writer , "Commands:" , remoteHelpOptions ())
141+ writeHelpSubsection (writer , "Environment:" , remoteEnvironmentHelpOptions ())
142+ }
143+
140144func quickStartExamples () []helpExample {
141145 return []helpExample {
142146 {Label : "1. Render audio" , CommandText : "synapseq session.spsq" , Description : "Generate session.wav in the current folder" },
@@ -192,6 +196,7 @@ func aiEnvironmentHelpOptions() []helpOption {
192196func remoteHelpOptions () []helpOption {
193197 return []helpOption {
194198 {FlagText : "-sync" , ColumnWidth : 28 , Description : "Sync the local Remote index" },
199+ {FlagText : "-sync-url URL" , ColumnWidth : 28 , Description : "Sync a custom Remote base URL" },
195200 {FlagText : "-list" , ColumnWidth : 28 , Description : "List available remote sequences" },
196201 {FlagText : "-search WORD" , ColumnWidth : 28 , Description : "Search remote sequences" },
197202 {FlagText : "-info NAME" , ColumnWidth : 28 , Description : "Show information about a remote sequence" },
@@ -201,6 +206,12 @@ func remoteHelpOptions() []helpOption {
201206 }
202207}
203208
209+ func remoteEnvironmentHelpOptions () []helpOption {
210+ return []helpOption {
211+ {FlagText : "SYNAPSEQ_REMOTE_BASE_URL" , ColumnWidth : 28 , Description : "Custom Remote base URL" },
212+ }
213+ }
214+
204215func advancedHelpOptions () []helpOption {
205216 return []helpOption {
206217 {FlagText : "-ffmpeg-path PATH" , ColumnWidth : 22 , Description : "Path to ffmpeg executable" },
0 commit comments