Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom unit definitions #79

Open
tiffany352 opened this issue Sep 22, 2020 · 0 comments
Open

Custom unit definitions #79

tiffany352 opened this issue Sep 22, 2020 · 0 comments
Labels
cli For issues related to Rink CLI specifically enhancement
Milestone

Comments

@tiffany352
Copy link
Owner

tiffany352 commented Sep 22, 2020

Add a new command define {name} {expr}. Probably also undef {name} and list-defs as well. They'll need to be mentioned in the manual.

Units should be saved to the config directory and be stored in json format (DefEntry's Serialize/Deserialize impl).

Editing the file directly should let you use additional functionality like defining new substances, categories, base units, prefixes.

@tiffany352 tiffany352 added enhancement cli For issues related to Rink CLI specifically labels Sep 22, 2020
tiffany352 added a commit that referenced this issue May 11, 2024
Implements #79.

The CLI will now load more than the first `definitions.units` file it
finds. It will stick them together and load them as one big
`definitions.units` file. This lets you easily add custom definitions by
adding them to `~/.config/rink/definitions.units`. The format for it is
already documented in the manpage.
@tiffany352 tiffany352 added this to the 0.8.1 milestone May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli For issues related to Rink CLI specifically enhancement
Projects
None yet
Development

No branches or pull requests

1 participant