Skip to content

A flexible task runner with a POSIX-style interface, designed as an alternative to Make.

License

Notifications You must be signed in to change notification settings

YuKitsune/dingus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dingus

A dead-simple task runner written in pure Rust.

GitHub Workflow Status License Latest Release

Dingus is a dead-simple task runner with a familiar POSIX-style interface. It's lightweight, easy to use, and perfect for consolidating project-specific tasks.

Features

  • Designed from the ground-up as a command runner without the constraints of a build tool.
  • Supports Windows, macOS, and Linux, and isn't dependant on a specific Shell.
  • Provides a POSIX-style command-line interface allowing for nested subcommands, and variable substitution using command-line arguments.
  • Uses a simple YAML file for configuration.

Overview

Warning Dingus is still in early development and it's configuration syntax and usage are subject to change.

Dingus relies on YAML for its configuration.

In your Dingus.yaml, you can define variables at the root level. These variables are global, so they're available to all commands and subcommands throughout the file.

Example:

variables:
  name: Godzilla

commands:
  greet:
    action: echo Hello, $name!

  pet:
    action: echo You have petted $name!
$ dingus greet
Hello, Godzilla!

$ dingus pet
You have petted Godzilla!

You can also define variables within commands. These variables are available to the command and its subcommands.

commands:
  greet:
    variables:
      name: Godzilla
    action: echo Hello, $name!

  pet:
    variables:
      name: Maxwell
    action: echo You have petted $name!
$ dingus greet
Hello, Godzilla!

$ dingus pet
You have petted Maxwell!

Actions represent the actual commands that get executed. When you invoke a command, its actions are run in sequence.

commands:
  greet:
    variables:
      name: Godzilla

    # Single action
    action: echo Hello, $name!

  pet:
    variables:
      name: Maxwell

    # Multiple actions
    actions:
      - echo Petting $name...
      - sleep 5
      - echo You have petted $name!
$ dingus greet
Hello, Godzilla!

$ dingus pet
Petting...
You have petted Maxwell!

Learn more

Interested in learning more? Check out the docs!

About

A flexible task runner with a POSIX-style interface, designed as an alternative to Make.

Topics

Resources

License

Stars

Watchers

Forks