Commit 6c99583

mo khan <mo@mokhan.ca>
2021-02-07 19:27:11
feat: delegate to exec when subcommand is not found
1 parent 6539cd8
Changed files (1)
lib
lib/jive/cli.rb
@@ -13,6 +13,10 @@ module Jive
         true
       end
 
+      def self.handle_no_command_error(name)
+        ::Jive::Cli::App.start(["exec", name])
+      end
+
       desc "cd <org>/<project>", "cd to ~/src/github.com/<org>/<project>"
       def cd(slug)
         runner.run_safely { Git.new(runner).cd(slug) }