DeterminateSystems / fh

The official CLI for FlakeHub: search for flakes, and add new inputs to your Nix flake.
https://flakehub.com
Apache License 2.0
105 stars 8 forks source link

Make `fh init` take a language option. #74

Open vic opened 8 months ago

vic commented 8 months ago

It would be nice if fh init could take some CLI option like --lang rust (or any other supported handler) because people will tend to initialize a flake on an empty directory.

For a rust project, I created a directory and had to touch an empty Cargo.toml before running fh init -- and wont even have cargo on my PATH until the flake is ready.

What do you think? I'd love to contribute this.

lucperkins commented 8 months ago

@vic I'm definitely intrigued by this idea! And I think it'd be reasonably straightforward to pull it off. I'll experiment a bit and see what I come up with 😄