@platformic/argocd-client
v0.0.5
Published
Awesome typesafe ArgoCD client
Downloads
6
Readme
ArgoCD Client
Simple client build using orval and fetch
How to use use it?
import argocd from "argocd-client";
const run = async () => {
try {
await argocd.applicationServiceGet('ingress-nginx')
} catch (error) {
console.log(error.message)
}
}
run()
Generate types with orval
- Download ArgoCD swagger spects with curl
- Modify orval.config.ts input to path new spects
- Run npm run generate
- Modify src/generated/argocd.ts and fix import paths extensions (Github Issue)