Skip to content

Commit 8618778

Browse files
jdelliotfacebook-github-bot
authored andcommitted
Rename PrefetchCmd->PrefetchProfileCmd
Summary: # This Diff Rename PrefetchCmd->PrefetchProfileCmd - to make way for the Rust version of the `eden prefetch` command. # Context We are doing some Oxidation (Python->Rust) migration of the EdenFS CLI. This is an ongoing BE activity that will complete when all CLI commands have been moved. Reviewed By: genevievehelsel Differential Revision: D75331896 fbshipit-source-id: 78a6e1c9a2655f0953207bb9e631256c5016e2b2
1 parent 2822496 commit 8618778

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eden/fs/cli_rs/edenfs-commands/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub enum TopLevelSubcommand {
137137
Notify(crate::notify::NotifyCmd),
138138
Pid(crate::pid::PidCmd),
139139
#[clap(subcommand, alias = "pp")]
140-
PrefetchProfile(crate::prefetch_profile::PrefetchCmd),
140+
PrefetchProfile(crate::prefetch_profile::PrefetchProfileCmd),
141141
#[clap(subcommand, alias = "redir")]
142142
Redirect(crate::redirect::RedirectCmd),
143143
#[clap(alias = "rm")]

eden/fs/cli_rs/edenfs-commands/src/prefetch_profile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub struct FetchOptions {
9393
to do so. Fetching files in advance helps warm caches and leads to faster \
9494
file operations. This command is primarily for use in automation."
9595
)]
96-
pub enum PrefetchCmd {
96+
pub enum PrefetchProfileCmd {
9797
#[clap(about = "Stop recording fetched file paths and save previously \
9898
collected fetched file paths in the output prefetch profile")]
9999
Finish {
@@ -196,7 +196,7 @@ pub enum PrefetchCmd {
196196
},
197197
}
198198

199-
impl PrefetchCmd {
199+
impl PrefetchProfileCmd {
200200
async fn finish(&self, output_path: &PathBuf) -> Result<ExitCode> {
201201
let instance = get_edenfs_instance();
202202
let client = instance.get_client();
@@ -574,7 +574,7 @@ impl PrefetchCmd {
574574
}
575575

576576
#[async_trait]
577-
impl Subcommand for PrefetchCmd {
577+
impl Subcommand for PrefetchProfileCmd {
578578
async fn run(&self) -> Result<ExitCode> {
579579
match self {
580580
Self::Finish { output_path } => self.finish(output_path).await,

0 commit comments

Comments
 (0)