Sha256: f1198ee46eef54b12c0daf4a4d24685b97a43b2f68d3ae4e4cdb9b67b08fb7d4
Contents?: true
Size: 932 Bytes
Versions: 1
Compression:
Stored size: 932 Bytes
Contents
require File.join File.dirname(__FILE__), 'gitenv' require 'commander/import' program :name, 'gitenv' program :version, Gitenv::VERSION program :description, 'Symlink manager for git repositories with configuration files.' global_option '-r', '--repo PATH', 'Specify the path to the environment repository' global_option '-c', '--config PATH', 'Use a custom configuration file (defaults to ~/.gitenv.rb)' command :info do |c| c.syntax = 'gitenv info' c.description = 'Display the current configuration (default action)' c.action do |args,options| Gitenv::Controller.new(:info, options).run end end command :update do |c| c.syntax = 'gitenv update' c.description = 'Create/update the symlinks' c.action do |args,options| Gitenv::Controller.new(:update, options).run end end # TODO: add a verbose option (show repo, show config file path) # TODO: add link to documentation in help default_command :info
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitenv-0.0.5 | lib/program.rb |