Class: Space::Core::CLI::BaseCommand

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
Helpers
Defined in:
lib/space_core/cli/base_command.rb

Overview

Base for every space/architect command. dry-cli (>= 0.7.0) copies a superclass’s options to its subclasses, so the global colour options are declared once here and inherited everywhere instead of being mixed in per command. Helpers (terminal/store/render) ride along by inheritance too.

The ‘src` binary has its own output-mode system (–plain/–json) and does NOT inherit from this base.

Method Summary

Methods included from Helpers

#display_date, #handle_errors, #project_config, #render, #setup_terminal, #state, #store, #terminal