summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-12 14:54:28 -0400
committerGitHub <noreply@github.com>2023-04-12 14:54:28 -0400
commit9c255b2843b3446c7ac6592eb8e318972eb5f1f8 (patch)
tree02b02d4a7ce3077435c0add9774d053003110f15 /cli/proc_state.rs
parent66a22d231af0681450b84d1bdbc0b585f0a728ee (diff)
refactor: `ProcState::build` -> `ProcState::from_flags` (#18672)
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index 659e2d1db..2d4f181fa 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -112,17 +112,17 @@ impl Deref for ProcState {
}
impl ProcState {
- pub async fn build(flags: Flags) -> Result<Self, AnyError> {
- Self::from_options(Arc::new(CliOptions::from_flags(flags)?)).await
- }
-
- pub async fn from_options(
+ pub async fn from_cli_options(
options: Arc<CliOptions>,
) -> Result<Self, AnyError> {
Self::build_with_sender(options, None).await
}
- pub async fn build_for_file_watcher(
+ pub async fn from_flags(flags: Flags) -> Result<Self, AnyError> {
+ Self::from_cli_options(Arc::new(CliOptions::from_flags(flags)?)).await
+ }
+
+ pub async fn from_flags_for_file_watcher(
flags: Flags,
files_to_watch_sender: tokio::sync::mpsc::UnboundedSender<Vec<PathBuf>>,
) -> Result<Self, AnyError> {