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

Clean start.sh script #6

Open
KartavyaSharma opened this issue Oct 24, 2023 · 0 comments
Open

Clean start.sh script #6

KartavyaSharma opened this issue Oct 24, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested

Comments

@KartavyaSharma
Copy link
Owner

KartavyaSharma commented Oct 24, 2023

The start.sh script was never meant to become so bloated. Currently it handles setting up all the dependencies, starting the runner.py instance, and possible setting up the backup daemon (once it is implemented). Split the start.sh script into multiple modules. Possible modules include:

  • setup.sh
  • runner.sh
  • bkp.sh

Have all of these run through a main.sh script that calls on these scripts based on the flags provided. Also, research task: how to nest flags w/o having to ask the user for additional flags when one of the sub-modules has been called. For an example, check out the https://sh.rustup.rs script that rust uses to install itself on to a system.

@KartavyaSharma KartavyaSharma changed the title Cleanup start.sh script Clean start.sh script Oct 24, 2023
@KartavyaSharma KartavyaSharma added documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested labels Oct 24, 2023
@KartavyaSharma KartavyaSharma added this to the `trapp` v1.0 milestone Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant