Skip to content

Commit

Permalink
Make sure people are okay with potentially stale repo, and bump Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendolan committed Nov 8, 2023
1 parent ceb300a commit 946d920
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .jumpstart/init.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ class Jumpstart::Init
getter default_programmatic_app_name : String = "lucky_jumpstart"
getter default_human_app_name : String = "Lucky Jumpstart"

INSTALLED_LUCKY_VERSION = {{ `shards list | grep "lucky " | head -n 1 | sed -nE 's/.*\\(([^)]+)\\).*/\\1/p'`.stringify }}

def call
prompt.say "🚀 Welcome to #{default_human_app_name}!", color: :yellow, style: :bold
prompt.newline

prompt.say "Note that I'm not actively maintaining this repository. Make sure you're okay with Lucky version #{INSTALLED_LUCKY_VERSION}.", color: :yellow, style: :bold
prompt.newline

if prompt.yes?("Would you like to continue?", color: :light_cyan)
prompt.say "Great! Let's get started.", color: :white
else
prompt.say "No worries! Thanks for checking out the project.", color: :white
exit
end

prompt.say "#{bullet_list_icon} Let's start by renaming a few things in the starter application.", color: :light_cyan
Spark.indent
rename_files_and_content
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.6"

services:
postgres:
image: postgres:12-alpine
image: postgres:16-alpine
environment:
- POSTGRES_PASSWORD=postgres
ports:
Expand Down

0 comments on commit 946d920

Please sign in to comment.