Openapi SDK async methods in Clap subcommands
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Start with the Clap command example in the issue and identify the SDK’s async entry points and the repository’s existing CLI or async examples. The issue asks how to call async SDK methods from a synchronous CLI; done means providing a working structure for the fetch subcommand and showing how to run the async call.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I have CLI commands with Clap:
let matches = App::new("CLI").get_matches();
if let Some(_) = matches.subcommand_matches("fetch") {
sdk.get_users().await.unwrap();
}
Compiling fails because async calls are not allowed in main. How can I structure async SDK calls in a synchronous Clap CLI?
- Vorherrschende Sprache
- Rust
- Sterne
- 29
- Forks
- 3
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus openapi/openapi-rust-sdk
-
Propagating Openapi SDK errors in existing Result pipelineEvtl. vergeben @manish-raana hat das vor 156 Tagen übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 25/100
openapi/openapi-rust-sdk#11 ·
-
documentation enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
openapi/openapi-rust-sdk#10 ·
-
documentation good first issue
Schwierigkeit 4/5 1-2 Tage Anfängerfreundlichkeit 35/100
-
help wanted
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
Alle Issues in openapi/openapi-rust-sdk
Ähnliche Issues
-
rustix::termios::Termios::OutputModes does not expost some const e.g. OLCUC for musl and macOSOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
bytecodealliance/rustix#1706 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 11 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
wormhole-foundation/wormhole#5062 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100