-
Notifications
You must be signed in to change notification settings - Fork 137
Refactoring #1
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
Merged
Merged
Refactoring #1
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0d90dc7
Deleted WinPcap from tools (was not able to install).
Svieg 3f6f795
Refactored reg, dir, doc, pkg commands to get rid of code duplcation …
Svieg b25b975
Added middle-script not to fuck up the git tree.
Svieg cc57b66
Fixed PEP8 issues.
Svieg b1484b5
Bugfix on format string. Line 312 to check for PEP8.
Svieg b5ee316
Fixed a few bugs. Users scripts logic needs rework.
Svieg a917454
Fixed Hugo's copyright statement
obilodeau 23777bc
Merge branch 'master' into refactoring to fix merge conflict
obilodeau 18f0ee3
Fixed two lines for styling so we are done with those kind of changes…
Svieg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is a side note, do not implement since this is a refactoring branch.
The source tree should not have user artifacts (or config) mixed with repository content. We need a least one (config.json right now) but I don't think we should add too many or maybe add a
config.d/put the files there and have it in.gitignoreand provide aconfig.d.examples/. Or maybe we should migrateconfig.jsontoconfig.pyand have it be a simple dict with the values to generate the packer config, the ps1 user installer and everything else. For now leave this like that but let's think about it.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.
As that function was intended to reduce code duplication, why wouldn't that considered refactoring ? It did not change the external behaviour so its nonfunctional changes ?
As for the configuration files, as we talked about, the current proposition is to create a middle script called
scripts/windows/user_scripts.ps1that executes thescripts/user/scripts that we could include in the.gitignore. Is this what you are talking about ?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.
Misunderstanding: I meant to say: do not change anything based on my comments since this is a refactoring branch. The changes highlighted in the diff in themselves are clearly refactoring and acceptable. Sorry for misunderstanding.
I forgot we talked about that ;). That sounds good. I would use
userscripts/instead ofscripts/user/in order to make it more easy to discover by the user (since it is top-level). What do you think?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.
Agreed !