Class: DnsMadeEasy::CLI::Commands::Base

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
MessageHelpers
Defined in:
lib/dnsmadeeasy/cli/commands/base.rb

Overview

Base class for dry-cli commands.

Constant Summary collapse

SUPPORTED_FORMATS =
%w[json json_pretty yaml pp].freeze
DEFAULT_CREDENTIAL_PATHS =
[
  Pathname.new('~/.dnsmadeeasy/credentials.ini').expand_path,
  Pathname.new('./.dnsmadeeasy/credential.ini').expand_path
].freeze

Constants included from MessageHelpers

MessageHelpers::BOX_OPTIONS

Method Summary

Methods included from MessageHelpers

error, included, info, print_box, success, warn