Skip to content

Repository files navigation

Cake Build Status

Cake is a powerful and flexible Make-like utility tool. Implement tasks on plain crystal-lang and Make Tasks Great Again!

Installation

Execute command to install Cake

$ curl https://raw.githubusercontent.com/axvm/cake/master/install.sh | bash

Usage

Develop tasks in plain Crystal code in Cakefile and run them via $ cake :task_name

bin/cake

 Usage:
cake task_name
cake -T
Options:
-T, --tasks Show all tasks
-h, --help This info
-v, --version Show version

Cakefile sample

# Define task
task :task_namedo# task logicend# Define task with description
desc "task useful description"
task :some_taskdo# 2 + 1end# Run one task from another
desc "invoke example"
task :firstdo# -Infinity / 0
invoke! :secondend
task :seconddo# yay we are here!end# Execute shell commands
task :builddo
execute "shards build"# or with sweet logs
execute(
cmd:"shards build",
announce:"Building binary...",
success:"Binary built!",
error:"Build failed."
)
end# Log things
task :deploydo# your deploy code
log "Deploy successful!"
log "Or errored.", 1end

Development

  1. Implement feature and tests
  2. Create pull request
  3. ...
  4. Profit!

Contributing

  1. Fork it ( https://github.com/axvm/cake/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • [axvm] Alexander Marchenko - creator, maintainer
  • [alexandregv] Alexandre Guiot--Valentin - contributor

About

Cake is a powerful and flexible Make-like utility tool. Make Tasks Great Again!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages