Created
January 30, 2017 17:49
-
-
Save matiasgarciaisaia/2ca75369657a70b24217cd8b36b482d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
name: bug-3946 | |
version: 0.1.0 | |
crystal: 0.20.5 | |
dependencies: | |
callback: | |
github: mosop/callback | |
version: 0.6.2 | |
cli: | |
github: mosop/cli | |
version: 0.6.4 | |
optarg: | |
github: mosop/optarg | |
version: 0.5.4 | |
string_inflection: | |
github: mosop/string_inflection | |
version: 0.2.0 |
This file contains hidden or 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
require "cli" | |
require "json" | |
class Command | |
JSON.mapping({ | |
content: String | |
}) | |
end | |
class Main < Cli::Supercommand | |
class Server < Cli::Command | |
def run | |
Command.from_json("") | |
end | |
end | |
end | |
Main.run ARGV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment