Skip to content

Commit 7655579

Browse files
committed
fix hotdata auth command rename
1 parent 065811f commit 7655579

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub fn resolve_workspace_id(provided: Option<String>, profile_config: &ProfileCo
203203
.workspaces
204204
.first()
205205
.map(|w| w.public_id.clone())
206-
.ok_or_else(|| "no workspace-id provided and no default workspace found. Run 'hotdata auth login' or specify --workspace-id.".to_string())
206+
.ok_or_else(|| "no workspace-id provided and no default workspace found. Run 'hotdata auth' or specify --workspace-id.".to_string())
207207
}
208208

209209
/// Global API key override set via --api-key flag.

src/connections.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn types_list(workspace_id: &str, format: &str) {
3232
let api_key = match &profile_config.api_key {
3333
Some(key) if key != "PLACEHOLDER" => key.clone(),
3434
_ => {
35-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
35+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
3636
std::process::exit(1);
3737
}
3838
};
@@ -97,7 +97,7 @@ pub fn types_get(workspace_id: &str, name: &str, format: &str) {
9797
let api_key = match &profile_config.api_key {
9898
Some(key) if key != "PLACEHOLDER" => key.clone(),
9999
_ => {
100-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
100+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
101101
std::process::exit(1);
102102
}
103103
};
@@ -179,7 +179,7 @@ pub fn create(
179179
let api_key = match &profile_config.api_key {
180180
Some(key) if key != "PLACEHOLDER" => key.clone(),
181181
_ => {
182-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
182+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
183183
std::process::exit(1);
184184
}
185185
};
@@ -272,7 +272,7 @@ pub fn list(workspace_id: &str, format: &str) {
272272
let api_key = match &profile_config.api_key {
273273
Some(key) if key != "PLACEHOLDER" => key.clone(),
274274
_ => {
275-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
275+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
276276
std::process::exit(1);
277277
}
278278
};

src/connections_new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn load_client() -> (reqwest::blocking::Client, String, String) {
2525
let api_key = match &profile.api_key {
2626
Some(k) if k != "PLACEHOLDER" => k.clone(),
2727
_ => {
28-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
28+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
2929
std::process::exit(1);
3030
}
3131
};

src/datasets.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn create_dataset(
245245
let api_key = match &profile_config.api_key {
246246
Some(key) if key != "PLACEHOLDER" => key.clone(),
247247
_ => {
248-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
248+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
249249
std::process::exit(1);
250250
}
251251
};
@@ -315,7 +315,7 @@ pub fn create_from_upload(
315315
let api_key = match &profile_config.api_key {
316316
Some(key) if key != "PLACEHOLDER" => key.clone(),
317317
_ => {
318-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
318+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
319319
std::process::exit(1);
320320
}
321321
};
@@ -432,7 +432,7 @@ pub fn list(workspace_id: &str, limit: Option<u32>, offset: Option<u32>, format:
432432
let api_key = match &profile_config.api_key {
433433
Some(key) if key != "PLACEHOLDER" => key.clone(),
434434
_ => {
435-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
435+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
436436
std::process::exit(1);
437437
}
438438
};
@@ -509,7 +509,7 @@ pub fn get(dataset_id: &str, workspace_id: &str, format: &str) {
509509
let api_key = match &profile_config.api_key {
510510
Some(key) if key != "PLACEHOLDER" => key.clone(),
511511
_ => {
512-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
512+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
513513
std::process::exit(1);
514514
}
515515
};

src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn execute(sql: &str, workspace_id: &str, connection: Option<&str>, format:
3434
let api_key = match &profile_config.api_key {
3535
Some(key) if key != "PLACEHOLDER" => key.clone(),
3636
_ => {
37-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
37+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
3838
std::process::exit(1);
3939
}
4040
};

src/results.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn list(workspace_id: &str, limit: Option<u32>, offset: Option<u32>, format:
5252
let api_key = match &profile_config.api_key {
5353
Some(key) if key != "PLACEHOLDER" => key.clone(),
5454
_ => {
55-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
55+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
5656
std::process::exit(1);
5757
}
5858
};
@@ -128,7 +128,7 @@ pub fn get(result_id: &str, workspace_id: &str, format: &str) {
128128
let api_key = match &profile_config.api_key {
129129
Some(key) if key != "PLACEHOLDER" => key.clone(),
130130
_ => {
131-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
131+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
132132
std::process::exit(1);
133133
}
134134
};

src/tables.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn list(
6666
let api_key = match &profile_config.api_key {
6767
Some(key) if key != "PLACEHOLDER" => key.clone(),
6868
_ => {
69-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
69+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
7070
std::process::exit(1);
7171
}
7272
};

src/workspace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn load_client() -> (reqwest::blocking::Client, String, String) {
2626
let api_key = match &profile_config.api_key {
2727
Some(key) if key != "PLACEHOLDER" => key.clone(),
2828
_ => {
29-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
29+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
3030
std::process::exit(1);
3131
}
3232
};
@@ -115,7 +115,7 @@ pub fn list(format: &str) {
115115
let api_key = match &profile_config.api_key {
116116
Some(key) if key != "PLACEHOLDER" => key.clone(),
117117
_ => {
118-
eprintln!("error: not authenticated. Run 'hotdata auth login' to log in.");
118+
eprintln!("error: not authenticated. Run 'hotdata auth' to log in.");
119119
std::process::exit(1);
120120
}
121121
};

0 commit comments

Comments
 (0)