-
Notifications
You must be signed in to change notification settings - Fork 1
Add support to parse and return the GardenLinux "cname" #98
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
Conversation
baa8f2d to
431a6cc
Compare
431a6cc to
1658ac1
Compare
| import re | ||
|
|
||
|
|
||
| def main(): |
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.
Just for your reference, we also have the python-gardenlinux-cli, which is used as a CLI wrapper for this library.
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.
... at least this was the initial intention. :D
not sure how to design this now, since python-gardenlinux-cli looks more like a tool for OCI only.
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.
I'm not sure if adding a separate CLI repository may not be counter productive as reusability of code between "lib" and "cli" parts are at least more complicated in that case. Naming of both repositories may be changed to reflect there content.
Furthermore GardenLinux does not have a Python code base that allows "lib" code to be used without a "cli" implementation. Therefore I would suggest to unify the code paths in place.
yeoldegrove
left a comment
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.
I am fine with extending python-gardenlinux-lib and getting rid of python-gardenlinux-cli (I think @paulphys mentioned this).
Maybe another approach would be deprecating old code somehow (at least comment it inside the code) as we have duplicate code in this library already. Also identifying where this is actually used and where we can break things.
Relates: gardenlinux/gardenlinux#2830 Signed-off-by: Tobias Wolf <[email protected]>
Signed-off-by: Tobias Wolf <[email protected]>
836b73e to
51712b3
Compare
51712b3 to
b48ffe0
Compare
What this PR does / why we need it:
This PR adds
gl-cnameas a script to parse and return the cname based on thefeaturesdirectory. It does not refactor the underlying code base even though many functions defined contain duplicated code.Which issue(s) this PR fixes:
Relates gardenlinux/gardenlinux#2830