Sha256: a7abeb184f1bbba6b7d3a59ac530816aa03672d1a2480f3153e6b305366467c8

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

#!/usr/bin/env ruby

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

# Command line runne # class CLIr
class CLI < Thor

  register(
    Hexx::Domains::CLI,
    "domain",
    "domain NAME[ -a Author][ -u username][ -e email][ -r ruby][ -d][ -b][ -g]",
    "Scaffolds new domain model. Run `hexx domain -h` for help."
  )

  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.2.0 bin/hexx