Port rotate (#880)

* Add rotate command

* Add rotate counter clockwise

* Fix comments in the code

* Fix clippy warnings

* Fix comment

* Fix wrong step for non even table sizes

* Fix comment for moving through array

* Refactor rotate and have only one command with a --ccw flag for counter-clockwise rotation. By default, rotate is clockwise

* Update usage description
This commit is contained in:
Stefan Stanciulescu
2022-01-29 21:47:28 +01:00
committed by GitHub
parent 44821d9941
commit 3c8716873e
3 changed files with 363 additions and 0 deletions

View File

@ -87,6 +87,7 @@ pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
Reject,
Rename,
Reverse,
Rotate,
Select,
Shuffle,
Skip,