Removed fancyline
This commit is contained in:
parent
e55127f0bf
commit
83367687a8
|
@ -8,14 +8,6 @@ shards:
|
|||
git: https://github.com/mrrooijen/commander.git
|
||||
version: 0.4.0
|
||||
|
||||
crystal-argon2:
|
||||
git: https://github.com/axentro/crystal-argon2.git
|
||||
version: 0.1.3
|
||||
|
||||
cute:
|
||||
git: https://github.com/papierkorb/cute.git
|
||||
version: 0.4.0
|
||||
|
||||
db:
|
||||
git: https://github.com/crystal-lang/crystal-db.git
|
||||
version: 0.10.1
|
||||
|
@ -32,14 +24,6 @@ shards:
|
|||
git: https://github.com/repomaa/env_config.cr.git
|
||||
version: 0.1.0+git.commit.a3ef5b955f27e2c65de2fe0ff41718e2eea7c06f
|
||||
|
||||
fancyline:
|
||||
git: https://github.com/papierkorb/fancyline.git
|
||||
version: 0.4.1
|
||||
|
||||
future:
|
||||
git: https://github.com/crystal-community/future.cr.git
|
||||
version: 1.0.0
|
||||
|
||||
granite:
|
||||
git: https://github.com/amberframework/granite.git
|
||||
version: 0.23.0
|
||||
|
|
|
@ -19,8 +19,6 @@ dependencies:
|
|||
github: amberframework/granite
|
||||
pg:
|
||||
github: will/crystal-pg
|
||||
crystal-argon2:
|
||||
github: Axentro/crystal-argon2
|
||||
graphql:
|
||||
github: graphql-crystal/graphql
|
||||
branch: master
|
||||
|
@ -28,8 +26,6 @@ dependencies:
|
|||
github: crystal-community/jwt
|
||||
commander:
|
||||
github: mrrooijen/commander
|
||||
fancyline:
|
||||
github: Papierkorb/fancyline
|
||||
micrate:
|
||||
github: juanedi/micrate
|
||||
mosquito:
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require "commander"
|
||||
require "fancyline"
|
||||
|
||||
require "./db"
|
||||
|
||||
|
@ -7,23 +6,7 @@ module Backend
|
|||
module CLI
|
||||
extend self
|
||||
|
||||
private FANCY = Fancyline.new
|
||||
|
||||
private def input(prompt : String) : String
|
||||
x = FANCY.readline(prompt)
|
||||
|
||||
if x
|
||||
x.chomp.strip
|
||||
else
|
||||
""
|
||||
end
|
||||
end
|
||||
|
||||
def run : Nil
|
||||
FANCY.actions.set Fancyline::Key::Control::CtrlC do
|
||||
exit
|
||||
end
|
||||
|
||||
cli = Commander::Command.new do |cmd|
|
||||
cmd.use = "backend"
|
||||
cmd.long = "Mentorenwahl backend CLI"
|
||||
|
@ -78,12 +61,6 @@ module Backend
|
|||
puts "---"
|
||||
puts "Token: #{Api::Auth.create_user_jwt(user_id: user.id.not_nil!)}"
|
||||
puts "---"
|
||||
|
||||
# puts "---"
|
||||
# puts "User id: #{user.id}"
|
||||
# puts "Admin id: #{admin.id}"
|
||||
# puts "Token: #{Api::Auth.create_user_jwt(user_id: user.id.not_nil!)}"
|
||||
# puts "---"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue