Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created January 30, 2017 17:49
Show Gist options
  • Save matiasgarciaisaia/2ca75369657a70b24217cd8b36b482d8 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/2ca75369657a70b24217cd8b36b482d8 to your computer and use it in GitHub Desktop.
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
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