Class: BlogTools::CLI

Inherits:
Thor
  • Object
show all
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.

Examples:

Running the CLI

blog-tools generate my-post
blog-tools lists show my-list
blog-tools config

See Also:

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ void

Creates a new CLI instance and initializes the storage backend.

This is called automatically when the CLI is run.

Parameters:

  • args (Array)

    arguments passed to Thor



39
40
41
42
# File 'lib/blog-tools/cli.rb', line 39

def initialize(*args)
  super
  Storage.setup!
end