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

Switch CLI to subcommands #53

Open
Profpatsch opened this issue Jan 9, 2021 · 0 comments
Open

Switch CLI to subcommands #53

Profpatsch opened this issue Jan 9, 2021 · 0 comments

Comments

@Profpatsch
Copy link
Owner

Currently there are two “subcommands”:

  • yarn2nix [./yarn.lock]: converts the lockfile to nix code from stdout
  • yarn2nix --template [./package.json]: converts the package.json to a compatible bit of metadata

We are gonna have more stuff like bundle, so we should do a (breaking) switch to subcommands now that we still can.

  • yarn2nix convert yarn-lock [path/to/yarn.lock]
  • yarn2nix convert package-json [path/to/package.json]

should give us a good first namespace for the existing (low-level) functionality, invoking yarn2nix on its own should be the same as yarn2nix --help.

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

No branches or pull requests

1 participant