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

Create Setup Validation Script #31

Open
andrewwoods opened this issue Sep 26, 2024 · 0 comments
Open

Create Setup Validation Script #31

andrewwoods opened this issue Sep 26, 2024 · 0 comments
Labels
Task A normal ticket

Comments

@andrewwoods
Copy link
Owner

Description

As Opal improves over time, features get added. Sometimes, those features require a certain file or directory to exist. This script would examine the users' setup. If something is missing, the script would create it.

Expected Outcome

An executable, non-destructive, script in the opal/bin directory that validates that everything Opal needs, is available. Nothing should be over-written or deleted. The only dependency of this script is opal/core.bash file. The whole framework should not be loaded just to run this script.

The script should display to the user a label of what is being checked.
If something is already there, display Found. If somethng needs to be created, display Added, so the user knows an action was taken.

Example Output

$HOME/opal/bin is in $PATH ....... Found
$HOME/.local/bin is in $PATH ..... Found
$HOME/.bashrc .................... Found
$HOME/.bash_profile .............. Found
$HOME/.vimrc ..................... Found
$HOME/.config/nvim/init.lua ...... Added

The only args that need support are -h | --help to display a help message, to show how to run the script.

Describe alternatives you've considered

I considered making this a single function, but a separate script is more flexible and robust.

@andrewwoods andrewwoods added the Task A normal ticket label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task A normal ticket
Projects
None yet
Development

No branches or pull requests

1 participant