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

[IDEA] Add cli execution #8

Closed
halvardssm opened this issue Oct 13, 2020 · 1 comment · Fixed by #10
Closed

[IDEA] Add cli execution #8

halvardssm opened this issue Oct 13, 2020 · 1 comment · Fixed by #10

Comments

@halvardssm
Copy link
Contributor

Hi! I would be interested in using this module for cli execution in a CI pipeline without having to write my own script. Would you be open to adding a cli extension of this module, or accept a PR for it?

Example:

deno run https://deno.land/x/semver/cli.ts valid "1.2.3" // "1.2.3"
deno run https://deno.land/x/semver/cli.ts valid "a.b.c" // null
deno run https://deno.land/x/semver/cli.ts clean "  =v1.2.3   " // "1.2.3"
deno run https://deno.land/x/semver/cli.ts satisfies "1.2.3" "1.x || >=2.5.0 || 5.0.0 - 7.2.3" // true
deno run https://deno.land/x/semver/cli.ts gt "1.2.3" "9.8.7" // false
deno run https://deno.land/x/semver/cli.ts lt "1.2.3" "9.8.7" // true
deno run https://deno.land/x/semver/cli.ts minVersion ">=1.0.0" // "1.0.0"
@halvardssm halvardssm mentioned this issue Oct 13, 2020
@halvardssm
Copy link
Contributor Author

@justjavac Could you make a release with the cli update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant