Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatical API for install/uninstall #51

Open
medikoo opened this issue Sep 27, 2019 · 0 comments
Open

Programmatical API for install/uninstall #51

medikoo opened this issue Sep 27, 2019 · 0 comments

Comments

@medikoo
Copy link

medikoo commented Sep 27, 2019

Currently, via documentation then only way to setup tabtab completion is to use tabtab.install and tabtab.unistall which initialize inquirer prompts.

It'll be great to have dedicatad programmatical functions where we can pass what type of shell we want to setup.

I've noted that technically I can refer directly to e.g. install as exported by lib/installer.js.
Still they write to the console, so also seem not perfectly isolated for programmatical usage:

tabtab/lib/installer.js

Lines 298 to 302 in 8e16e47

console.log(`
=> Tabtab source line added to ${location} for ${name} package.
Make sure to reload your SHELL.
`);

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

No branches or pull requests

1 participant