Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lassejlv/actionfile
Makefile alternative without the hassle.
https://github.com/lassejlv/actionfile
Last synced: about 2 months ago
JSON representation
Makefile alternative without the hassle.
- Host: GitHub
- URL: https://github.com/lassejlv/actionfile
- Owner: lassejlv
- Created: 2024-05-15T20:12:25.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T14:33:09.000Z (6 months ago)
- Last Synced: 2024-10-13T13:29:55.829Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Actionfile
Makefile alternative without the hassle. It aims to be very easy and fun to use.
If you don't know what Makefile is, it's a tool that allows you to define a set of tasks that you can run from the command line.
### Install
```bash
npm install -g actionfile
```### Usage
actionfile.toml
```toml
[hello_world]
cmd = "echo 'Hello, World!'"
silent = true # Turn this on if you don't wanna see logs from Actionfile it self
``````bash
action hello_world
```Output: Hello World!
### Using Environment Variables
```toml
[env]
path = "./env"
``````toml
[hello_world]
cmd = "echo 'Hello, $NAME!'" # Loads the NAME variable from the env file
silent = true # Turn this on if you don't wanna see logs from Actionfile it self
```Output: Hello, John!