Sha256: f48bf9914879d9065ccd2d80abf4bd0fe32bd456270ddf5c62a355c71a637648

Contents?: true

Size: 894 Bytes

Versions: 15

Compression:

Stored size: 894 Bytes

Contents

module Vedeu

  # Provide a command line interface to Vedeu.
  #
  # @api public
  module CLI

    # The main command line interface commands.
    #
    # @api public
    class Main < Thor

      desc 'new <name>', 'Create a skeleton Vedeu client application.'
      # @param name [String]
      # @return [String]
      def new(name)
        say Vedeu::Generator::Application.generate(name)
      end

      # 'Specify the interface name lowercase snakecase; e.g. main_interface'

      desc 'view <name>',
           'Create a new interface within the client application.'
      # @param name [String]
      # @return [String]
      def view(name)
        Vedeu::Generator::View.generate(name)
      end

      desc 'version',
           'Print the version.'
      # @return [String]
      def version
        say "vedeu #{Vedeu::VERSION}"
      end

    end # Main

  end # CLI

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.4.58 lib/vedeu/cli/main.rb
vedeu-0.4.57 lib/vedeu/cli/main.rb
vedeu-0.4.56 lib/vedeu/cli/main.rb
vedeu-0.4.55 lib/vedeu/cli/main.rb
vedeu-0.4.54 lib/vedeu/cli/main.rb
vedeu-0.4.53 lib/vedeu/cli/main.rb
vedeu-0.4.52 lib/vedeu/cli/main.rb
vedeu-0.4.51 lib/vedeu/cli/main.rb
vedeu-0.4.50 lib/vedeu/cli/main.rb
vedeu-0.4.49 lib/vedeu/cli/main.rb
vedeu-0.4.48 lib/vedeu/cli/main.rb
vedeu-0.4.47 lib/vedeu/cli/main.rb
vedeu-0.4.46 lib/vedeu/cli/main.rb
vedeu-0.4.45 lib/vedeu/cli/main.rb
vedeu-0.4.44 lib/vedeu/cli/main.rb