Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

feat: Allow to enable the access to the system shell via server features #38

Merged
merged 5 commits into from
Dec 18, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

People were asking for such functionality, so lets make them happy

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

great 🎉

* @throws {Error} If there was a problem during command execution
*/
commands.execute = async function execute (script, args) {
this.ensureFeatureEnabled(SYSTEM_SHELL_FEATURE);
Copy link
Member

Choose a reason for hiding this comment

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

Will we add this feature flag in readme like other modules?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I'm sometimes being lazy with documenting all the stuff. I've tried to provide accurate docstrings in the source though ;)

Choose a reason for hiding this comment

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

@mykola-mokhnach can you please provide an example of how to actually execute a simple shell command once this feature has been enabled when starting appium server? im unsure how to use with my driver? I'm using C# fyi. Appreciate any help. Thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants