withfig / autocomplete

IDE-style autocomplete for your existing terminal & shell
https://fig.io
MIT License
24.39k stars 5.4k forks source link

add [dapr] spec #2342

Closed bondz closed 2 weeks ago

bondz commented 1 month ago

Completions spec for dapr cli

withfig-bot commented 1 month ago

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

withfig-bot commented 1 month ago

Overview

## src/dapr.ts: ### Info: ### Single Functions: **postProcess:** ```typescript function (out) { try { const appList = JSON.parse(out); return appList.map((app) => { return { name: app.appId, description: `HTTP Port: ${app.httpPort} age: ${app.age}`, }; }); } catch { return []; } } ``` ### URLs: - `https://hub.docker.com/v2/namespaces/daprio/repositories/daprd/tags?page_size=100`
withfig-bot commented 1 month ago

Hello @bondz, thank you very much for creating a Pull Request! Here is a small checklist to get this PR merged as quickly as possible:

Please add a 👍 as a reaction to this comment to show that you read this.

grant0417 commented 1 month ago

Hey @bondz if you want use to merge this make sure to sign the CLA

bondz commented 1 month ago

I have read the CLA Document and I hereby sign the CLA

bondz commented 1 month ago

dapr uses cobra. The spec is mostly generated from the code. The spec mostly has duplicates but I figure to keep the changes so we can keep generating it from the code.

Added a function to generate list of running apps for commands that need them. cc @grant0417

bondz commented 2 weeks ago

@grant0417 @mschrage is there anything else you want me to consider?