Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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: 2 additions & 0 deletions src/auth/callback.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

#[cfg(not(target_arch = "wasm32"))]
use anyhow::bail;
use anyhow::Result;
Expand Down
2 changes: 2 additions & 0 deletions src/auth/dcr.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

#[cfg(not(target_arch = "wasm32"))]
use anyhow::{bail, Context, Result};
#[cfg(not(target_arch = "wasm32"))]
Expand Down
2 changes: 2 additions & 0 deletions src/auth/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

pub mod callback;
pub mod dcr;
pub mod pkce;
Expand Down
2 changes: 2 additions & 0 deletions src/auth/pkce.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

#[cfg(not(target_arch = "wasm32"))]
use anyhow::Result;
#[cfg(not(target_arch = "wasm32"))]
Expand Down
2 changes: 2 additions & 0 deletions src/auth/storage.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use anyhow::{Context, Result};
use std::path::PathBuf;

Expand Down
2 changes: 2 additions & 0 deletions src/auth/types.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use chrono::Utc;
use serde::{Deserialize, Serialize};

Expand Down
2 changes: 2 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use reqwest_middleware::{ClientBuilder, ClientWithMiddleware};

#[cfg(not(target_arch = "wasm32"))]
Expand Down
2 changes: 2 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use anyhow::{bail, Result};
#[cfg(not(feature = "browser"))]
use serde::Deserialize;
Expand Down
2 changes: 2 additions & 0 deletions src/filter.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

//! jq filter support via the [`jaq`](https://github.com/01mf02/jaq) engine.
//!
//! [`apply_jq`] is the sole public entry point; the jaq API is encapsulated
Expand Down
2 changes: 2 additions & 0 deletions src/formatter.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use anyhow::Result;
use serde::Serialize;

Expand Down
9 changes: 5 additions & 4 deletions src/generated.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Stable integration point for openapi-transformer-generated pup commands.
//
// Future regenerations add variants to `GeneratedCommand` (and new modules
// alongside this file) in place; main.rs never needs to change again.
// Code generated by openapi-transformer. DO NOT EDIT.

use anyhow::Result;

use crate::config::Config;

/// All spec-generated pup commands.
///
/// Re-run the generator to add or remove tags; pup never needs manual changes
/// for new commands.
#[derive(clap::Subcommand)]
pub enum GeneratedCommand {}

Expand Down
2 changes: 2 additions & 0 deletions src/useragent.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use crate::version;

#[allow(dead_code)]
Expand Down
2 changes: 2 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

use anyhow::Result;

/// Read a JSON file and deserialize into the specified type.
Expand Down
2 changes: 2 additions & 0 deletions src/version.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by openapi-transformer. DO NOT EDIT.

/// Version is set at build time via env var or defaults to Cargo package version.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down