fix(summer): delegate admin, route and key commands and pass all delegate flags through
- delegateCommands() builds every delegate from one table of name, description and common-flags hint; toolCommands appends it - route:list, key:generate, admin:create and admin:reset-password are new delegates; the child keeps summer's stdin, so the password prompts work - migrate:rollback, queue:work and schedule:run lose their hand-written flag copies: --plugin, --queue and --once now pass through verbatim - the command list marks delegates with "(flags pass to the app binary)" and the help command prints a Long text with the common flags - console introduction, setup-and-maintenance and the root README describe the passthrough behaviour and the new delegates
This commit is contained in:
@@ -26,7 +26,7 @@ func main() {
|
||||
}
|
||||
|
||||
func toolCommands() []bonfire.Command {
|
||||
return []bonfire.Command{
|
||||
return append([]bonfire.Command{
|
||||
buildCommand(),
|
||||
makePluginCommand(),
|
||||
makeModelCommand(),
|
||||
@@ -42,17 +42,10 @@ func toolCommands() []bonfire.Command {
|
||||
parityReplayCommand(),
|
||||
parityBroadcastsCommand(),
|
||||
parityUpstreamCommand(),
|
||||
delegateCommand("migrate", "Run plugin migrations in the app binary"),
|
||||
delegateRollbackCommand(),
|
||||
delegateCommand("migrate:status", "Show per-plugin migration history in the app binary"),
|
||||
delegateCommand("serve", "Run the app HTTP server"),
|
||||
delegateQueueWorkCommand(),
|
||||
delegateScheduleRunCommand(),
|
||||
delegateCommand("queue:clear", "Clear pending queued jobs in the app binary"),
|
||||
docsBuildCommand(),
|
||||
docsSyncCommand(),
|
||||
docsServeCommand(),
|
||||
}
|
||||
}, delegateCommands()...)
|
||||
}
|
||||
|
||||
func buildCommand() bonfire.Command {
|
||||
|
||||
Reference in New Issue
Block a user