Support for yum invalid commands. (#968)

* - Add skeleton code for yum_invalid_operation.py
- Add test for rule/yum_invalid_operation

* Add: mocker for subprocess.Popen.

* Fix: invalid yum_operations.

* Fix: Added missing fixtures.

* Add: yum_invalid_operation implementation.

* Add: enabled_by_default variable for rules/yum_invalid_operation.

* Update Readme.
This commit is contained in:
ik1ne
2019-10-19 22:05:22 +09:00
committed by Vladimir Iakovlev
parent 581a292797
commit 0ccb34bde8
4 changed files with 216 additions and 0 deletions
+1
View File
@@ -322,6 +322,7 @@ The following rules are enabled by default on specific platforms only:
* `nixos_cmd_not_found` – installs apps on NixOS;
* `pacman` – installs app with `pacman` if it is not installed (uses `yay` or `yaourt` if available);
* `pacman_not_found` – fixes package name with `pacman`, `yay` or `yaourt`.
* `yum_invalid_operation` – fixes invalid `yum` calls, like `yum isntall vim`;
The following commands are bundled with *The Fuck*, but are not enabled by
default: