-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build commands produces detailed output of what happened (#927)
This is a copy of the PR @MateuszMa created but due to how the repository was previously organized I needed to create another one myself. This PR introduces a new option `-v` to the `ucc-gen build` command which shows detailed information about created/copied/modified/conflict files after build is complete. --------- Co-authored-by: Mateusz Macalik <mmacalik@splunk.com>
- Loading branch information
Showing
19 changed files
with
758 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/testdata/expected_addons/expected_files_conflict_test/expected_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"Detailed information about created/copied/modified/conflict files": "INFO", | ||
"Read more about it here: https://splunk.github.io/addonfactory-ucc-generator/quickstart/#verbose-mode": "INFO", | ||
"\u001b[33mapp.manifest modified\u001b[0m": "INFO", | ||
"\u001b[32mLICENSE.txt copied\u001b[0m": "INFO", | ||
"\u001b[32mREADME.txt copied\u001b[0m": "INFO", | ||
"VERSION created\u001b[0m": "INFO", | ||
"\u001b[31mbin/import_declare_test.py conflict\u001b[0m": "INFO", | ||
"\u001b[32mbin/my_first_input.py copied\u001b[0m": "INFO", | ||
"\u001b[31mbin/test_addon_rh_account.py conflict\u001b[0m": "INFO", | ||
"bin/test_addon_rh_my_first_input.py created\u001b[0m": "INFO", | ||
"bin/test_addon_rh_settings.py created\u001b[0m": "INFO", | ||
"default/app.conf created\u001b[0m": "INFO", | ||
"default/inputs.conf created\u001b[0m": "INFO", | ||
"default/restmap.conf created\u001b[0m": "INFO", | ||
"default/server.conf created\u001b[0m": "INFO", | ||
"default/test_addon_settings.conf created\u001b[0m": "INFO", | ||
"default/web.conf created\u001b[0m": "INFO", | ||
"default/data/ui/nav/default.xml created\u001b[0m": "INFO", | ||
"default/data/ui/views/configuration.xml created\u001b[0m": "INFO", | ||
"default/data/ui/views/dashboard.xml created\u001b[0m": "INFO", | ||
"default/data/ui/views/inputs.xml created\u001b[0m": "INFO", | ||
"\u001b[31mREADME/inputs.conf.spec conflict\u001b[0m": "INFO", | ||
"\u001b[31mREADME/test_addon_account.conf.spec conflict\u001b[0m": "INFO", | ||
"\u001b[31mREADME/test_addon_settings.conf.spec conflict\u001b[0m": "INFO", | ||
"lib created\u001b[0m": "INFO", | ||
"appserver/static/js/build/globalConfig.json created\u001b[0m": "INFO", | ||
"appserver/static/openapi.json created\u001b[0m": "INFO", | ||
"metadata/default.meta created\u001b[0m": "INFO" | ||
} |
1 change: 1 addition & 0 deletions
1
tests/testdata/test_addons/package_files_conflict_test/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# test_addon |
Oops, something went wrong.