From 0b8e57c5e67ffd1382faa33c07b3b03911348bc3 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Wed, 18 May 2022 20:18:10 +0200 Subject: [PATCH] shell.nix: use the right dev shell --- shell.nix | 2 +- src/command/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 3482e5e..01d7b61 100644 --- a/shell.nix +++ b/shell.nix @@ -1,2 +1,2 @@ { system ? builtins.currentSystem }: -(import ./. { inherit system; }).treefmt +(import ./. { inherit system; }).devShell diff --git a/src/command/mod.rs b/src/command/mod.rs index 4c55827..7bad92d 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -53,7 +53,7 @@ pub struct Cli { /// Run as if treefmt was started in instead of the current working directory. pub work_dir: PathBuf, - #[structopt(long = "tree-root")] + #[structopt(long = "tree-root", env = "PRJ_ROOT")] /// Set the path to the tree root directory. Defaults to the folder holding the treefmt.toml file. pub tree_root: Option,