Skip to content

Commit

Permalink
fixup: remove --profile-path flag
Browse files Browse the repository at this point in the history
In the future we may have an `fh apply profile` command where this could
live.
  • Loading branch information
cole-h committed Oct 8, 2024
1 parent 50ae6ad commit 169001b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/cli/cmd/apply/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ pub(crate) struct ApplySubcommand {
#[clap(subcommand)]
system: System,

#[clap(long)]
profile_path: Option<PathBuf>,

#[clap(long, default_value_t = false)]
request_restricted_token: bool,

Expand Down Expand Up @@ -100,10 +97,7 @@ impl CommandExecute for ApplySubcommand {
&resolved_path.store_path
);

let profile_path = match &self.profile_path {
Some(path) => Some(path.to_owned()),
None => applyer.profile_path().map(ToOwned::to_owned),
};
let profile_path = applyer.profile_path();

match resolved_path.token {
Some(token) if self.request_restricted_token => {
Expand Down Expand Up @@ -157,7 +151,7 @@ impl CommandExecute for ApplySubcommand {
}

let (profile_path, _tempdir) = apply_path_to_profile(
profile_path.as_deref(),
profile_path,
&resolved_path.store_path,
applyer.requires_root(),
)
Expand Down

0 comments on commit 169001b

Please sign in to comment.