Skip to content

pine-free/roll-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roll-cli

A dice-roller for all my nerdy needs

Usage

You can roll any dice you want in any numbers (within the unsigned integer limit, but if you need that many dice I think you've got bigger problems)

$ roll-cli "1d12"  # Regular dice roll
$ roll-cli "4d6 + 1d4 + 3 - 1d8"  # Basic calculations 
$ roll-cli "hp: 3d6; arrows in pouch: 4d4 + 6"  # Custom labels, several expressions in one

Installation

Nix flakes

Add this into your system configuration or modify it accordingly

# flake.nix

{...}: {
  inputs = {
    roll-cli.url = "github:pine-free/roll-cli";
  };
  outputs = { ... }@inputs: {
     # <snip>
  }
# configuration.nix
{...}: {
  environment.systemPackages = [
    inputs.roll-cli.defaultPackage.<your-architecture>
  ];
}

About

A nixos-friendly dice-roller for all my (and your) nerdy needs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.1%
  • Nix 2.9%