Closed myzie closed 5 months ago
New cli module supports building full-featured CLIs in the Risor language.
cli
Supports:
Use this specific shebang line at the start of script files: #!/usr/bin/env risor -- to ensure flags and args are passed through correctly.
#!/usr/bin/env risor --
Additional small enhancements in this PR:
[]string
#!/usr/bin/env risor -- from cli import app, command as c app({ name: "myapp", description: "My app description", commands: [ command({ name: "hello", description: "Say hello", action: func(ctx) { print("Hello, world!") }, }), ], }).run()
fyi @luisdavim @applejag @abadfox233 - you should give this a try!
New
cli
module supports building full-featured CLIs in the Risor language.Supports:
Use this specific shebang line at the start of script files:
#!/usr/bin/env risor --
to ensure flags and args are passed through correctly.Additional small enhancements in this PR:
[]string
in object.FromGoType