Add GraphQL schema printing command
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dc33fba7aa
commit
c56d359814
|
@ -49,6 +49,16 @@ module Backend
|
|||
end
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "schema"
|
||||
c.short = "Prints out GraphQL schema"
|
||||
c.long = c.short
|
||||
|
||||
c.run do
|
||||
puts Api::Schema::SCHEMA.document.to_s
|
||||
end
|
||||
end
|
||||
|
||||
cmd.commands.add do |c|
|
||||
c.use = "register <username> <role>"
|
||||
c.short = "Seeds the database with required data"
|
||||
|
|
Loading…
Reference in a new issue