Skip to content

Fix command_type classification#7074

Merged
rgwood merged 1 commit intonushell:mainfrom
dandavison:fix-command-classification
Nov 10, 2022
Merged

Fix command_type classification#7074
rgwood merged 1 commit intonushell:mainfrom
dandavison:fix-command-classification

Conversation

@dandavison
Copy link
Contributor

This PR fixes a bug in #7052, adds an external command type, and adds a couple of tests.

Specifically the bug was:

For example, in my personal Nushell, I get

 〉help commands | get command_type | uniq -c
╭──────────┬───────╮
│  value   │ count │
├──────────┼───────┤
│ custom   │    84 │
│ keyword  │    22 │
│ builtin  │   293 │
│ external │     3 │
╰──────────┴───────╯

- Custom commands are true for builtin and custom
- Add classification as external command
- Specify wildcard in keyword: keyword is true for builtin and keyword
@rgwood
Copy link
Contributor

rgwood commented Nov 10, 2022

LGTM. Thanks!

@rgwood rgwood merged commit bb0d08a into nushell:main Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants