parent
8911329beb
commit
1da69eef4a
|
@ -1,6 +1,6 @@
|
|||
use std::{path::PathBuf, process::ExitCode};
|
||||
|
||||
use crate::{error::HasExpectedErrors, BuiltinPlanner};
|
||||
use crate::{cli::ensure_root, error::HasExpectedErrors, BuiltinPlanner};
|
||||
use clap::Parser;
|
||||
|
||||
use eyre::WrapErr;
|
||||
|
@ -32,6 +32,8 @@ impl CommandExecute for Plan {
|
|||
async fn execute(self) -> eyre::Result<ExitCode> {
|
||||
let Self { planner, output } = self;
|
||||
|
||||
ensure_root()?;
|
||||
|
||||
let planner = match planner {
|
||||
Some(planner) => planner,
|
||||
None => BuiltinPlanner::default().await?,
|
||||
|
|
Loading…
Reference in a new issue