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

Feat refactored winget app resource construction to programatically lift meta data from msft store #131

Merged
merged 15 commits into from
Oct 2, 2024

Conversation

ShocOne
Copy link
Contributor

@ShocOne ShocOne commented Oct 2, 2024

Change

Feel free to remove this sample text

Thank you for your contribution !
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
List any dependencies that are required for this change.

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor of existing code

Checklist

  • I'm sure there are no other open Pull Requests for the same update/change
  • My corresponding pipelines / checks run clean and green without any errors or warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (readme)
  • I did format my code

…nd provide default value

- Updated the EnvDefaultFuncInt64Value function in variables.go to handle Read operations and provide a default value of types.Int64.
- Added logic to check if the environment variable exists and parse it as an int64 value.
- If the environment variable is not set or cannot be parsed, the function returns the default value.
This commit adds a new helper function called EnvDefaultFuncStringList to the internal/helpers/variables.go file. This function is used to retrieve a slice of strings based on an environment variable or a default value. The function splits the environment variable value by commas and trims any whitespace before returning the resulting slice. If the environment variable is not set or is empty, the function returns the provided default value.

Co-authored-by: [Author Name]
@ShocOne ShocOne merged commit 04af37c into main Oct 2, 2024
4 of 5 checks passed
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