Class: BlogTools::CLI
- Inherits:
-
Thor
- Object
- Thor
- BlogTools::CLI
- Defined in:
- lib/blog-tools/cli.rb
Overview
CLI is the entry point for the blog-tools command-line interface.
It defines high-level commands like ‘generate`, `lists`, and `config`, and delegates their functionality to the appropriate subcommands.
This class inherits from Thor, a Ruby gem for building command-line interfaces.
Instance Method Summary collapse
-
#initialize(*args) ⇒ void
constructor
Creates a new CLI instance and initializes the storage backend.
Constructor Details
#initialize(*args) ⇒ void
Creates a new CLI instance and initializes the storage backend.
This is called automatically when the CLI is run.
39 40 41 42 |
# File 'lib/blog-tools/cli.rb', line 39 def initialize(*args) super Storage.setup! end |