Skip to content

Commit

Permalink
bump to the latest LuckyTask (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Sep 22, 2023
1 parent 4865d4b commit 693cf0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ dependencies:
version: ~> 0.4.8
lucky_task:
github: luckyframework/lucky_task
version: ~> 0.2.0
version: ~> 0.3.0
lucky_template:
github: luckyframework/lucky_template
version: ~> 0.1.0
version: ~> 0.2.0
wordsmith:
github: luckyframework/wordsmith
version: ~> 0.4.0
Expand Down
19 changes: 8 additions & 11 deletions src/carbon/tasks/gen/email.cr
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,17 @@ end
class Gen::Email < LuckyTask::Task
include LuckyTask::TextHelpers
summary "Generate a new Email"
help_message <<-TEXT
Generate a new email with html and text formats.
The email name must be CamelCase. No other options are available.
Examples:
lucky gen.email WelcomeUser
lucky gen.email SubscriptionRenewed
lucky gen.email ResetPassword
TEXT

positional_arg :email_name, "The name of the email", format: /^[A-Z]/

def help_message
<<-TEXT
Generate a new email with html and text formats.
The email name must be CamelCase. No other options are available.
Examples:
lucky gen.email WelcomeUser
lucky gen.email SubscriptionRenewed
lucky gen.email ResetPassword
TEXT
end

def call
email_template.render(Path["."])

Expand Down

0 comments on commit 693cf0b

Please sign in to comment.