brigand / brigand/shide

Chain shide commands

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There could be some middleware-like system where you can have a global and local shide command with the same name, and one yields to the other if it can't handle the command. Likely `shide.next()`.

Alternative:

```js
shide.call('some-command', {})
shide.call('some-command', {
local: true,
args: { foo: 'bar' },
});
```

This seems cleaner.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing command-dispatch entry point and reviewing how global and local commands are currently resolved. Compare the proposed shide.next() and shide.call() approaches, then define the expected fallback behavior, command scope, and arguments before implementation. Done means the chosen API and delegation rules are agreed and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.