lucky_task
Version, currently 0.1.04 versions
- 0.3.0latestSep 22, 2023
- 0.2.0not indexedSep 22, 2023
- 0.1.1not indexedSep 22, 2023
- 0.1.0not indexedSep 22, 2023
github.com/luckyframework/lucky_task
Library for creating command line tasks for the Lucky CLI
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
lucky_task:
github: luckyframework/lucky_task
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
Lucky Task
A Crystal library for creating command line tasks to be used with the LuckyCli.
Installation
-
Add the dependency to your
shard.yml:dependencies: lucky_task: github: luckyframework/lucky_task -
Run
shards install
Integrating With LuckyCli
Create a file tasks.cr at the root of your project
require "lucky_task"
# Using `lucky` from the command line will do nothing if you forget this
LuckyTask::Runner.run
Creating Tasks
Create a tasks directory in the root of your project.
Update your tasks.cr file to require all files within that directory for them to be registered with the CLI.
# tasks.cr
require "lucky_task"
require "./tasks/*"
In the directory create a file called send_daily_notifications.cr.
class SendDailyNotifications < LuckyTask::Task
summary "Send notifications to users"
# Name is inferred from class name ("send_daily_notifications")
# It can be overridden:
#
# task_name "app.send_daily_notifications"
def call
# Code that sends notifications to all your users...
end
end
Contributing
- Fork it (https://github.com/luckyframework/lucky_task/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- matthewmcgarvey - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Sep 22, 2023
- Commit
93c57327b313- Indexed
- not yet
Dependents
- crystal_china
- lucky_diff
- lucky
- news_ties
- lucky_cli
- avram
- lucky
- fluck_website
- skintwin
- bun_frontend
- scribe
- scribe
and 49 more
Repository
github.com/luckyframework/lucky_task
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 25, 2026
- Synced
- Sep 25, 2026
- Versions
- 4