Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Yapi.py configuration setup #69

Merged
merged 17 commits into from
Jan 10, 2019
Merged

Conversation

Wabri
Copy link
Owner

@Wabri Wabri commented Jan 8, 2019

Closes #68
Closes #66

@Wabri Wabri added enhancement New feature or request configurations Edit configuration files labels Jan 8, 2019
@Wabri Wabri self-assigned this Jan 8, 2019
@Wabri Wabri mentioned this pull request Jan 8, 2019
@Wabri
Copy link
Owner Author

Wabri commented Jan 8, 2019

I dont get where is the error, this is my output:

>>> get_language_pack()["COMMANDS"]
{'help': '', 'install': '<package_to_install>', 'update': '', 'cache': '', 'console': ''}

Why travis throw error on this?

@Wabri Wabri added bug Something isn't working invalid This doesn't seem right labels Jan 8, 2019
@Wabri
Copy link
Owner Author

Wabri commented Jan 8, 2019

Solved problem with moving object help and options inside method

@Wabri
Copy link
Owner Author

Wabri commented Jan 8, 2019

Works only in python3.x

@Wabri Wabri removed bug Something isn't working invalid This doesn't seem right labels Jan 9, 2019
@@ -15,6 +15,6 @@ def runScript(path_to_file):
bashCommand = bashCommand.replace("\n", " ; ")
output = subprocess.call(
bashCommand, stderr=subprocess.STDOUT, shell=True)
return output
return "Package installed correctly"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only return that if output == 0. If output is 0, then it is correct, otherwise there was an error.

yapi.sh Show resolved Hide resolved
@Wabri Wabri merged commit b698d79 into wabri-patch-54-config Jan 10, 2019
@Wabri Wabri deleted the wabri-patch-68-yapi branch January 10, 2019 10:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
configurations Edit configuration files enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants