Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Capi serve utility #321

Closed
harrysolovay opened this issue Oct 24, 2022 · 0 comments · Fixed by #368
Closed

Capi serve utility #321

harrysolovay opened this issue Oct 24, 2022 · 0 comments · Fixed by #368
Assignees

Comments

@harrysolovay
Copy link
Contributor

harrysolovay commented Oct 24, 2022

EDIT:

@tjjfvi suggested we expose a serve utility instead of a CLI. One could use as follows:

deno run -A -r https://deno.land/x/capi/serve.ts -- deno run -A -r path/to/ts_file.ts

path/to/ts_file.ts

import * as polkadot from "http://localhost:2345/discovery_value/mod.ts";

PREV:

Probably best to utilize a CLI framework like Cliffy (or perhaps there's a better alternative). Using std flags standalone complicates adding new commands while applying common flags to those commands (such as --help/-h/help/?).

For now, the CLI is used only to trigger codegen. I'd imagine we'll introduce other features in the future. Will be good to have a more easily-extensible foundation.

@harrysolovay harrysolovay changed the title Comprehensive CLI Capi serve utility Nov 11, 2022
@tjjfvi tjjfvi moved this to Properly Done in Capi Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants