This is a test repo for trying to solve bash-completion for NodeJS scripts.
Go to file
2024-07-02 23:37:20 +02:00
completion feat(): Begin bash completion functions and os script 2024-06-30 22:40:34 +02:00
init feat(): Begin init/oosh installer script 2024-07-02 23:18:23 +02:00
.gitignore doc(): Init repo 2024-06-24 22:53:49 +02:00
.prettierrc.json chore(): Add bracketSpacing in code style 2024-06-29 12:22:07 +02:00
log fix(): Rename fn discovery(), add debugLevel and rework command parser 2024-06-30 21:05:05 +02:00
myUpdateSubCommand fix(): Rename fn discovery(), add debugLevel and rework command parser 2024-06-30 21:05:05 +02:00
os feat(): Begin bash completion functions and os script 2024-06-30 22:40:34 +02:00
package-lock.json fix(): Downgrade commander and override default exit behaviour 2024-06-30 19:49:12 +02:00
package.json fix(): Downgrade commander and override default exit behaviour 2024-06-30 19:49:12 +02:00
pm fix(): Rename fn discovery(), add debugLevel and rework command parser 2024-06-30 21:05:05 +02:00
pm-install feat(): Optimize docstring parser for commander and make depending changes 2024-06-30 15:28:25 +02:00
pm-list feat(): Optimize docstring parser for commander and make depending changes 2024-06-30 15:28:25 +02:00
pm-search fix(): Downgrade commander and override default exit behaviour 2024-06-30 19:49:12 +02:00
README.md fix(): Downgrade commander and override default exit behaviour 2024-06-30 19:49:12 +02:00
this fix(): Compgen reply 2024-07-02 23:37:20 +02:00

This is an example repository for NodeJS scripts on BASH

By combining two powerful scripts it could be possible to have shell scripts with real object orientation self describing functions for bash-completion.

Tab completion for Javascript files: https://github.com/f/omelette/tree/master

Example for Tab completion with commander: https://github.com/tj/commander.js/issues/385#issuecomment-1457773417

Use universal shebang

https://unix.stackexchange.com/questions/65235/universal-node-js-shebang

Set location for npm packages with repl sessions

https://sabljakovich.medium.com/how-to-use-npm-packages-with-node-js-repl-sessions-cd77300ebfe2

Dependencies versionn

The iSH-App on iOS has the following latest versions available

  • nodejs v16.11.1
  • npm v7.17.0

These versions are deprecated, but if we want to use these scripts on iSH, we have to make sure they run on that outdated versions.

  • only commander v11 supports nodejs v16