)
tool("delete") do
+ permission :ask
+
rule "delete :target"
rule "remove :target"
- permission :ask
-
action do |target:|
puts "Deleting #{target}"
end
end
tool("archive") do
+ permission :yolo
+
rule "archive :target"
action do |target:|
end
tool("copy-from-to") do
+ permission :yolo
+
rule "copy :target to :destination"
+ rule "copy from :target to :destination"
action do |target:, destination:|
puts "Copying from #{target} to #{destination}"
end
end
- tool("move") do
- rule "move :target"
-
+ tool("move-from-to") do
permission :ask
- action do |target:|
- puts "Moving #{target}"
+ rule "move :target to :destination"
+ rule "move from :target to :destination"
+
+ action do |target:, destination:|
+ puts "Moving from #{target} to #{destination}"
end
end