class Marten::CLI::Manage

Overview

The manage CLI.

The manage (or management) CLI allows developers to interact with their Marten projects by issuing sub-commands. These sub-commands are either "built-in" (Marten comes with a predefined set of commands to handle various things such as database management, projects / apps initializations, etc), or they are provided by installed apps.

Defined in:

marten/cli/manage.cr
marten/cli/manage/command/base.cr
marten/cli/manage/command/collect_assets.cr
marten/cli/manage/command/gen_migrations.cr
marten/cli/manage/command/list_migrations.cr
marten/cli/manage/command/migrate.cr
marten/cli/manage/command/new.cr
marten/cli/manage/command/new/context.cr
marten/cli/manage/command/new/template.cr
marten/cli/manage/command/reset_migrations.cr
marten/cli/manage/command/routes.cr
marten/cli/manage/command/serve.cr
marten/cli/manage/command/version.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(options : Array(String), stdout : IO = STDOUT, stderr : IO = STDERR, name : String = Marten::CLI::DEFAULT_COMMAND_NAME) #

[View source]

Class Method Detail

def self.register_subcommand(command_klass : Command::Base.class) #

Allows to register a new command in order to make it available to the management CLI.


[View source]

Instance Method Detail

def run #

[View source]