Add GraphQL schema printing command
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-11-01 14:51:18 +01:00
parent dc33fba7aa
commit c56d359814
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -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"