Skip to content

Commit fce6199

Browse files
committed
Remove inner workspace-id flag on datasets subcommands
1 parent 16c85df commit fce6199

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/command.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ pub enum AuthKeysCommands {
166166
pub enum DatasetsCommands {
167167
/// List all datasets in a workspace
168168
List {
169-
/// Workspace ID (defaults to first workspace from login)
170-
#[arg(long)]
171-
workspace_id: Option<String>,
172-
173169
/// Maximum number of results (default: 100, max: 1000)
174170
#[arg(long)]
175171
limit: Option<u32>,
@@ -185,10 +181,6 @@ pub enum DatasetsCommands {
185181

186182
/// Create a new dataset from a file or piped stdin
187183
Create {
188-
/// Workspace ID (defaults to first workspace from login)
189-
#[arg(long)]
190-
workspace_id: Option<String>,
191-
192184
/// Dataset label (derived from filename if omitted)
193185
#[arg(long)]
194186
label: Option<String>,

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ fn main() {
6767
datasets::get(&id, &workspace_id, &format)
6868
} else {
6969
match command {
70-
Some(DatasetsCommands::List { workspace_id: ws, limit, offset, format }) => {
71-
let workspace_id = resolve_workspace(ws);
70+
Some(DatasetsCommands::List { limit, offset, format }) => {
7271
datasets::list(&workspace_id, limit, offset, &format)
7372
}
74-
Some(DatasetsCommands::Create { workspace_id: ws, label, table_name, file }) => {
75-
let workspace_id = resolve_workspace(ws);
73+
Some(DatasetsCommands::Create { label, table_name, file }) => {
7674
datasets::create(&workspace_id, label.as_deref(), table_name.as_deref(), file.as_deref())
7775
}
7876
None => {

0 commit comments

Comments
 (0)