mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-05 16:27:06 +00:00
client/get_closure: Add --include-outputs
This commit is contained in:
parent
8fc6b3935d
commit
332ac5051c
1 changed files with 5 additions and 1 deletions
|
@ -12,6 +12,10 @@ use attic::nix_store::NixStore;
|
|||
#[derive(Debug, Parser)]
|
||||
pub struct GetClosure {
|
||||
store_path: PathBuf,
|
||||
|
||||
/// For derivations, include their outputs.
|
||||
#[clap(long)]
|
||||
include_outputs: bool,
|
||||
}
|
||||
|
||||
pub async fn run(opts: Opts) -> Result<()> {
|
||||
|
@ -20,7 +24,7 @@ pub async fn run(opts: Opts) -> Result<()> {
|
|||
let store = NixStore::connect()?;
|
||||
let store_path = store.follow_store_path(&sub.store_path)?;
|
||||
let closure = store
|
||||
.compute_fs_closure(store_path, false, false, false)
|
||||
.compute_fs_closure(store_path, false, sub.include_outputs, false)
|
||||
.await?;
|
||||
|
||||
for path in &closure {
|
||||
|
|
Loading…
Add table
Reference in a new issue