Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea8c827
commit 1fba802
Showing
12 changed files
with
758 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require "oauth/cli" | ||
require_relative "../lib/oauth" | ||
require 'oauth/cli' | ||
|
||
OAuth::CLI.execute(STDOUT, STDIN, STDERR, ARGV) | ||
Signal.trap("INT") { puts; exit(1) } # don't dump a backtrace on a ^C | ||
|
||
ARGV << 'help' if ARGV.empty? | ||
command = ARGV.shift | ||
|
||
OAuth::CLI.new(STDOUT, STDIN, STDERR, command, ARGV).run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.