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

Add helper to check for git #358

Open
coolaj86 opened this issue Nov 24, 2021 · 1 comment
Open

Add helper to check for git #358

coolaj86 opened this issue Nov 24, 2021 · 1 comment
Labels
enhancement New feature or request up-for-grabs

Comments

@coolaj86
Copy link
Member

We should have some helper functions that can check for system-level dependencies and be called in the __init_xxxx of any installer, and print out a helpful message if that tool isn't there.

We've partially done with this git, but it should be more universal - in almost every vim-* installer, for example.

_webi/template.sh (? or maybe bootstrap? I don't recall)

function webi_check_git() {
    # do the check / print the message
}

vim-prettier

function __init_vim_prettier() {
    webi_check_git
    # do stuff...
}
@coolaj86 coolaj86 added enhancement New feature or request up-for-grabs labels Nov 24, 2021
@rritik772
Copy link

do you want bootstrap.sh to contain all the individual checks like function for checking git, vim, rg, or function should accept just the command name and check whether it is available or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants