Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/datasets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::formatter;
use crate::util;

fn make_api(cfg: &Config) -> DatasetsAPI {
crate::make_api_no_auth!(DatasetsAPI, cfg)
crate::make_api!(DatasetsAPI, cfg)
Comment thread
platinummonkey marked this conversation as resolved.
Comment thread
platinummonkey marked this conversation as resolved.
}

pub async fn list(cfg: &Config) -> Result<()> {
Expand Down
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,12 @@ enum Commands {
/// pup datasets list
/// pup datasets get my-dataset-id
/// pup datasets create --file dataset.json
///
/// AUTHENTICATION:
/// Requires either OAuth2 authentication or API keys.
/// All operations, including list/get, require the user_access_manage
/// scope, which is not requested by default -- opt in with:
/// pup auth login --extra-scopes user_access_manage
#[command(verbatim_doc_comment)]
Datasets {
#[command(subcommand)]
Expand Down