Hello Everyone!
Prism is a library for building CLI tools written purely in Mojo! It’s inspired by Cobra and urfave/cli from the Go ecosystem.
Here’s a simple example!
from prism import Command, Context
fn test(ctx: Context) -> None:
for arg in ctx.args:
print("Received:", arg[])
fn main() -> None:
Command(
name="hello",
usage="This is a dummy command!",
run=test
).execute()
All of the features are documented in the README, give it a try and if you have any feature requests please let me know. I’m also open to PRs if anyone would like to contribute.