Skip to content

Feat: Introduce bash-snippets.lib library #247

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

e55am
Copy link
Contributor

@e55am e55am commented Feb 7, 2025

Move redundant function and variables into a shared bash script library file bash-snippets.lib. This allows the individual scripts to be more focused and maintainable.

Pull Request Label:

  • Bug
  • New feature
  • Enhancement
  • New component
  • Typo

Pull Request Checklist:


e55am added 8 commits February 8, 2025 00:58
Move redundant function and variables into a shared bash script library file `bash-snippets.lib`. This allows the individual scripts to be more focused and maintainable.
- `bash-snippets.lib` is a dependency for the installer.

- The installer now installs the shared library as part of its process.

- Implemented command line option parsing in the installer.
Included guidelines for code style and formatting to ensure consistency across contributions.
- Parse short and long command line options

- API response processed with `jq`
- Parse short and long command line options

- Artist name and song name now are positional argument

- Remove `-f` option; user can redirect output for desired output file

- API response processed with `jq`
When the function Get_Info finishes execution, the variable will not be unsetted; Variable keys and values are declared as global variables.
Previously, the program output was fixed to a specific number of columns per line (80 columns)
This changed to dynamically adjust the number of columns based on the current user shell width
… input

- Fix number of columns increased by 2 on each iteration

- Add blank line separator if multiple argument supplied

- Implement stand alone function to set output width
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

Successfully merging this pull request may close these issues.

1 participant