Sha256: 40f50894558ac7b69fc29ccbac0a6506c50c52ac1c9010c348f8b0b37354ed33

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

#!/usr/bin/env ruby

# Loads the development dependencies
require "hexx-dependencies"
require "hexx-validators"
require "policy/cli"
require "service_objects/cli"

# Command line runne # class CLIr
class CLI < Thor

  register(
    Hexx::Dependencies::CLI,
    "dependency",
    "dependency[ NAME][ -g gemname][ -i Injection]",
    "Scaffolds a custom dependency. Run `hexx dependency -h` for help."
  )

  register(
    Hexx::Validators::Generator,
    "validator",
    "validator NAME[ -e error[ error]][ -o option[ option]]",
    "Scaffolds a custom validator. Run `hexx validator -h` for help."
  )

  register(
    Policy::CLI,
    "policy",
    "policy NAME[ -a attribute[ attribute]][ -n namespace][ -l en ru]",
    "Scaffolds a policy object. Run `hexx policy -h` for help."
  )

  register(
    ServiceObjects::CLI,
    "service",
    "service NAME[ -d dependency][ -p param][ -n notification]" \
    "[ -f folder][ -l ua]",
    "Scaffolds a service object. Run `hexx service -h` for help."
  )

end # class CLI

# Starts cli with arguments taken from a command line
CLI.start ARGV

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hexx-9.1.0 bin/hexx