Sha256: 6fb07e1ea768811edcdf90be6bc6b73bf1c5b2f5110e7e5dbd8401751f25642a
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
#!/usr/bin/env ruby require "souls" begin begin require "./config/initializers/souls" unless ARGV[0] == "new" || ARGV[0] == "init" rescue Souls::Init.config_init end case ARGV[0] when "new" if ARGV[1].nil? puts "you need to specify your app name \n `souls new app_name`" exit end puts "Which framework: \n 1. SOULS gRPC Service \n 2. SOULS GraphQL API gRPC compatible \n 3. SOULS GraphQL API \n 4. SOULS Media Web \n 5. SOULS Admin Web \n Enter Number: " strain = STDIN.gets.chomp.to_i (1..5).include?(strain) ? puts("Generating Souls.. \n") : raise(StandardError, "Choose Number 1..5") Souls::Init.create_souls strain: strain, app_name: ARGV[1] when "s", "server" strain = Souls.configuration.strain case strain when "api" system "bundle exec puma -p 3000" when "service" system "bundle exec rake run_server" else system "yarn dev" end when "c", "console" strain = Souls.configuration.strain case strain when "api" system "bundle exec irb" when "service" system "bundle exec irb" else system "yarn dev" end when "i", "infra" Souls.send ARGV[1] when "p", "proto" Souls::Init.proto proto_package_name: "souls", service: ARGV[1] when "init" Souls::Init.config_init when "-v", "--version" puts Souls::VERSION when "g", "generate" `touch .rubocop.yml` `touch .env` `touch .gitignore` `touch .irbrc` when "t", "test" case ARGV[1] when "-r" `bundle exec rspec` when "-s" `bundle exec steep check` else `bundle exec steep check` `bundle exec rspec` end when "deploy" project_id = Souls.configuration.project_id `gcloud builds submit --config=cloudbuild.yml --project #{project_id}` else puts "Welcome to Souls!Yeah!" end rescue StandardError => error puts error puts "Thank you!Souls!" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
souls-0.8.5 | exe/souls |