bmstefanski / nestjs-shell Goto Github PK
View Code? Open in Web Editor NEW๐ An interactive shell for NestJS which allows you to plug-in your custom commands and use them when the app's running
License: MIT License
๐ An interactive shell for NestJS which allows you to plug-in your custom commands and use them when the app's running
License: MIT License
Issue type:
question
bug report
feature request
documentation issue
nestjs-shell version
1.0.7
[Nest CLI]
Nest CLI Version : 7.5.1
[Nest Platform Information]
platform-express version : 7.4.4
sequelize version : 0.1.1
common version : 7.4.4
core version : 7.4.4
Excepted behavior
no warning message when install nestjs-shell
Actual behavior or outcome (for issue)
npm WARN [email protected] requires a peer of @nestjs/common@^6.7.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @nestjs/core@^6.7.2 but none is installed. You must install peer dependencies yourself.
When I install nestjs-config npm i nestjs-shell I get a npm warning message as I mentioned above. Are there any plans to upgrade the lib for compatibility with NestJS version 7 ?
Lines 54 to 57 in 0a8c769
Above you're using ShellModule
but forgot to import it in L54 :p
The prompt message should appear once the shell is bootstrapped
The prompt message appears only after either newline or backspace is hit.
Note that there is no red arrow on the first line (before .screenfetch
) but only upcoming ones
Add
rl.emit('line');
after
nestjs-shell/lib/shell.bootstraper.ts
Line 33 in f55d81f
in order to emit 'line' immediately after bootstrap
Run the application as intended since this issue literally appears in README.md meaning that it exists as is
Node.js version 14.17.0
I can submit a PR with suggested changes if this is accepted as a valid issue
Hey, can you allow us more control over the behaviour of the interface? Passing Partial<ReadLineOptions>
through shellFacade.bootstrap
or have it return the readline interface?
My end goal is the implemented the following which would allow for an auto complete functionality
completer: (line: string) => {
const commands = this.shellFacade.getAllCommands();
const filteredCommands = commands
.map((command) => command.name)
.filter((command) => command.startsWith(line));
return [filteredCommands, line];
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.