exe/git-superproject in git-superproject-0.2.2 vs exe/git-superproject in git-superproject-1.0.0
- old
+ new
@@ -27,9 +27,13 @@
end
case command
when '--list' then config.list(name)
when '--add' then config.add(name, *ARGV)
when '--remove' then config.remove(name, *ARGV)
+ when '--edit'
+ finder = 'fzf --print0 --multi --border --height=50%'
+ candidates = ARGF.readlines.map(&:strip) # repos to select from...
+ config.edit(name, finder, candidates)
else
abort \
"Unknown 'git superproject' command: #{command}\n\n" \
'(use --help/-h to list all available commands)'
end