-
Notifications
You must be signed in to change notification settings - Fork 24
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: add license during init command #1475
Conversation
tests/unit/test_main.py
Outdated
[ | ||
( | ||
{ | ||
"addon_name": "foo/bar", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an interesting test, should we allow foo/bar
as an add-on name for the ucc-gen init
command?
That's out of scope for this PR but worth checking our validations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we don't allow foo/bar
as an addon-name, it's also mentioned in one of the unit test case
In the recent push I had changed the name to splunk_add_on_for_demo
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
oopsie, tests are failing, @hetangmodi-crest please take a look. |
Fixed the smoke and umit test cases. |
Issue number: ADDON 76513
PR Type
What kind of change does this PR introduce?
Summary
Provided an optional flag (
--add-license
) to generate a skeleton TA with predefined licenses.Changes
Introduced an optional
--add-license
flag in theucc-gen init
command. This flag allows you to include a license agreement file for popular licenses such asApache License 2.0
,MIT License
, orSPLUNK PRE-RELEASE SOFTWARE LICENSE AGREEMENT
in theaddon_name/package/LICENSES
folder. If the input does not match one of these licenses, the add-on will fail to build.If the flag is not provided, an empty
License.txt
file will be created in theaddon_name/package/LICENSES
directory for users.User experience
User can now add their licenses using the flag
--add-licences
while initializing the add-on.Checklist
If an item doesn't apply to your changes, leave it unchecked.