implement adding users

This commit is contained in:
Artur Gurgul1 2025-08-07 17:36:47 +02:00
parent 0f9f1a84f9
commit bc0f9db31d
4 changed files with 34 additions and 5 deletions

View file

@ -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"])