-
Notifications
You must be signed in to change notification settings - Fork 13
Simplify the command type #183
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
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
add8d84
Send raw command string instead of a dictionary
Miauwkeru 7db7345
Add tests for empty command types
Miauwkeru e82cced
Add a test to read/write command type records from a json file
Miauwkeru 6af3586
Fix linting issues
Miauwkeru 82ea996
Fix linting properly
Miauwkeru 0c1d393
Unify posix_command and windows_command into one command class
Miauwkeru 2185416
enforce command.from_posix on test_command_posix
Miauwkeru 81bcb03
Apply suggestions from code review
Miauwkeru a0bb171
Add docstring to command type
Miauwkeru 8257bb3
Fix test_command_record
Miauwkeru 4f99c98
Fix issues
Miauwkeru 3ab6771
Refactored command a bit
yunzheng cdac722
Fix linting and add single and double quote command test
yunzheng f6551d8
Change command.args into a tuple
Miauwkeru c7994de
Add tests and functionality to assign executable and args
Miauwkeru 4436471
Remove command:_join()
Miauwkeru eef0287
Fix potential issue when dealing with assigning args with a string on…
Miauwkeru f1cbabf
Remove joining arguments for windows command
Miauwkeru 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
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
Oops, something went wrong.
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.
with the latest merged PR #200 we should be able to directly initialize path with the value to determine the correct path type. Then you can als get rid of
__path_type.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.
Do you mean removing the whole
__path_typein general? As in that case, there will be issues with for examplehello_world.exethat will be interpreted differently depending on what system it gets run on.If you just mean this specific case, this could still be an issue because the whole type can change from windows to posix path and vise versa. Tho I already have an idea on how to fix that specific issue.
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.
ah wait I thought __path_type was a function to determine the path type.
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.
ah, no. It is a
type[path], so either awindows_pathor aposix_path:)