Sha256: 18aead3632bc76dc25247cbba8050a662f4409570a67c3f76b902d3083122f5f

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

GLI.desc 'Add a new text file to the project'
arg_name "file_name"
command :add do |c|
	c.action do |global_options,options,args|
		raise ArgumentError, "Please specify a file name." if args.blank?
		Glyph.run 'project:add', args[0]
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
glyph-0.4.2 lib/glyph/commands/add.rb
glyph-0.4.1 lib/glyph/commands/add.rb
glyph-0.4.0 lib/glyph/commands/add.rb