Alex
Alex
It will work if you have entered password previously or you're allowed to run `sudo` without entering a password at all. Maybe then it's possible to tweak auto-complete as well.
Not really. You can create basic bash autocomplete hook using `compgen` and `complete` commands and see if it works through `sudo`. * If it does, then it means all ENV...
I know that `/usr/bin/env` can pass through env vars. I'm not sure if it can pass env vars from non-sudo to sudo calls. Does `RESULT="$(sudo -u www-data /usr/bin/env %%completion_command%%
I guess we can specify `--sudo-username` option (new) during hook generation and if set it will: 1. use `sudo` command for that user 2. transfer all env (better not to...
You can do `sudo -E` (according to http://unix.stackexchange.com/questions/202292/pass-environment-variables-values-to-a-program) to pass all env to sudoed script (I wish I could have found this sooner). This way following code should work as...
I guess you can send PR, that will add `--sudo-user` option with required value and then when specified during hook generation the sudo version of `RESULT` variable would be used...
In other words we want to allow commands to register own completion handlers. Would we require command name in the handlers registered that way to match current command name? What...
@mvorisek , now I like the change. @stof , what about testing considering that each driver is doing it differently?
> ``` > 1) Behat\Mink\Tests\Driver\Basic\IFrameTest::testIFrame > WebDriver\Exception\InvalidArgument: data did not match any variant of untagged enum FrameId at line 3 column 1 > > /home/runner/work/MinkSelenium2Driver/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:198 > /home/runner/work/MinkSelenium2Driver/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:167 > /home/runner/work/MinkSelenium2Driver/MinkSelenium2Driver/vendor/instaclick/php-webdriver/lib/WebDriver/Session.php:286 >...
Or you can include [paragonie/random_compat](https://github.com/paragonie/random_compat) as a dependency and use `random_int` and such PHP7 functions even on PHP5 to get unique random values.