Sha256: 761e4aead31ad9a21f770f0ef09e6970179739a688804c0df1ed25075fcc2a75
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
# frozen_string_literal: true module Vedeu # Provide a command line interface to Vedeu. # module CLI # The main command line interface commands. # class Main < Thor desc 'new <name>', 'Create a skeleton Vedeu client application.' long_desc <<-DESC `vedeu new <name>` will create a new skeleton Vedeu client application. Vedeu creates a new directory, <name>. If this directory already exists Vedeu will only add files and subdirectories which are missing. It will not overwrite existing files. DESC # @param name [String] # @return [String] def new(name) Vedeu::CLI::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.' long_desc <<-DESC `vedeu view <name>` will create a new interface within the client application. Having run `vedeu new <name>` and changing into the newly created client application directory, executing this command will create a new view with associated files. If this view already exists Vedeu will only add files and subdirectories which are missing. It will not overwrite existing files. DESC # @param name [String] # @return [String] def view(name) Vedeu::CLI::View.generate(name) end desc 'version', 'Print the version.' # @return [String] def version say("vedeu #{Vedeu::VERSION} (vedeu_cli #{Vedeu::CLI::VERSION})") end end # Main end # CLI end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu_cli-0.0.10 | lib/vedeu/cli/main.rb |
vedeu_cli-0.0.9 | lib/vedeu/cli/main.rb |