implement adding users
This commit is contained in:
parent
0f9f1a84f9
commit
bc0f9db31d
4 changed files with 34 additions and 5 deletions
4
bin/dat
4
bin/dat
|
@ -27,6 +27,9 @@ OptionParser.new do |opt|
|
|||
opt.on('--cache', 'Use cache') do |o|
|
||||
options.use_cache = true
|
||||
end
|
||||
opt.on('--forced', "if case of existing data, delete and recreate") do |o|
|
||||
options.forced = true
|
||||
end
|
||||
|
||||
opt.on('-t', '--target TARGET', ['user', 'usr', 'package', 'pkg', 'system', 'sys'], 'Target type (user, package, system)') do |target|
|
||||
|
||||
|
@ -67,6 +70,7 @@ when :pkginstall
|
|||
when :execute
|
||||
puts "Ececuting: #{options.name}"
|
||||
require 'execute'
|
||||
puts "Arguments: #{options}"
|
||||
Execute.file(options)
|
||||
when :goto
|
||||
Dir.chdir(ENV["DAT_ROOT"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue