Module: SmilyCli

Defined in:
lib/smily_cli.rb,
lib/smily_cli/cli.rb,
lib/smily_cli/color.rb,
lib/smily_cli/oauth.rb,
lib/smily_cli/client.rb,
lib/smily_cli/config.rb,
lib/smily_cli/errors.rb,
lib/smily_cli/result.rb,
lib/smily_cli/context.rb,
lib/smily_cli/version.rb,
lib/smily_cli/registry.rb,
lib/smily_cli/resource.rb,
lib/smily_cli/redaction.rb,
lib/smily_cli/completion.rb,
lib/smily_cli/formatters.rb,
lib/smily_cli/mcp/client.rb,
lib/smily_cli/cli_options.rb,
lib/smily_cli/base_command.rb,
lib/smily_cli/query_options.rb,
lib/smily_cli/resource_command.rb,
lib/smily_cli/commands/mcp_command.rb,
lib/smily_cli/commands/auth_command.rb,
lib/smily_cli/commands/config_command.rb,
sig/smily_cli.rbs

Overview

SmilyCli is a command-line client for the BookingSync (Smily) API v3.

The library layer (everything under SmilyCli) is deliberately usable on its own, without Thor: build a Context, hand it to a Client, and render results with Formatters. The Thor command layer (CLI and friends) autoloads lazily, so requiring the library does not pull in Thor until the command classes are actually touched.

Defined Under Namespace

Modules: CLIOptions, Color, Commands, Completion, Formatters, Mcp, QueryOptions, Redaction, Registry Classes: ApiError, BaseCommand, CLI, Client, Config, ConfigurationError, Context, Error, McpError, OAuth, Resource, ResourceCommand, Result, UsageError

Constant Summary collapse

VERSION =

Returns:

  • (String)
"0.1.0"

Class Method Summary collapse

Class Method Details

.cliClass

The Thor-powered command-line interface. Referencing the constant autoloads (and thereby requires Thor); kept behind a method so the entry point reads as SmilyCli.cli.start.

Returns:

  • (Class)

    the CLI Thor class



21
22
23
# File 'lib/smily_cli.rb', line 21

def self.cli
  CLI
end