risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
576 stars 24 forks source link

Fix handling of cli vs script arguments #238

Closed myzie closed 2 months ago

myzie commented 2 months ago

Fixes relating to splitting arguments: some for the Risor CLI, some for the Risor script. Separated using --.

Cobra CLI contributes to making this really tricky.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 68.00000% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 32.81%. Comparing base (3867ca3) to head (6f0f051).

Files Patch % Lines
cmd/risor/options.go 0.00% 7 Missing :warning:
cmd/risor/root.go 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #238 +/- ## ========================================== + Coverage 32.71% 32.81% +0.10% ========================================== Files 129 129 Lines 16011 16013 +2 ========================================== + Hits 5238 5255 +17 + Misses 10140 10125 -15 Partials 633 633 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.