Skip to content

Commit

Permalink
Merge pull request #2079 from rsteube/doc-inshellisense
Browse files Browse the repository at this point in the history
doc: bridge - added inshellisense
  • Loading branch information
rsteube authored Dec 20, 2023
2 parents dd2f501 + f603274 commit a78053b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/spec/bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ completion:
positionalany: ["$_bridge.Complete([vault])"]
```

### Inshellisense
Commands provided by [microsoft/inshellisense] can be bridged with the [`bridge.Inshellisense`] macro:

```yaml
name: node
description: Run the node interpreter
completion:
positionalany: ["$_bridge.Inshellisense([node])"]
```

### Kingpin

[alecthomas/kingpin] based commands can be bridged with the [`bridge.Kingpin`] macro:
Expand Down Expand Up @@ -195,6 +205,9 @@ completion:
[posener/complete]:https://github.com/posener/complete
[`bridge.Complete`]:https://pkg.go.dev/github.com/rsteube/carapace-bridge/pkg/actions/bridge#ActionComplete

[microsoft/inshellisense]:https://github.com/microsoft/inshellisense
[`bridge.Inshellisense`]:https://pkg.go.dev/github.com/rsteube/carapace-bridge/pkg/actions/bridge#ActionInshellisense

[alecthomas/kingpin]:https://github.com/alecthomas/kingpin
[`bridge.Kingpin`]:https://pkg.go.dev/github.com/rsteube/carapace-bridge/pkg/actions/bridge#ActionKingpin

Expand Down

0 comments on commit a78053b

Please sign in to comment.