From 5fbe7c6ec6c70b3e57da3d192d7c630f274a980e Mon Sep 17 00:00:00 2001 From: Justin Pallansch <98477057+jpal91@users.noreply.github.com> Date: Sat, 27 Jul 2024 13:18:28 -0400 Subject: [PATCH] Optional arguments (#109) * Updated logic to include optional args * Added optional arguments to clap workflow * Added tests for optional arguments * Fixed windows test, added php to gh actions * Removed a dependency I forgot, and clippy allow [skip actions] * Updated CI workflow for mac/php errors, removed dead comments * Updated to macos-latest for gh actions runner --- mask-parser/src/maskfile.rs | 19 ++++++ mask-parser/src/parser.rs | 81 ++++++++++++++++++++------ mask/src/executor.rs | 5 ++ mask/src/main.rs | 14 +++++ mask/tests/arguments_and_flags_test.rs | 65 +++++++++++++++++++++ mask/tests/introspect_test.rs | 1 + 6 files changed, 167 insertions(+), 18 deletions(-) diff --git a/mask-parser/src/maskfile.rs b/mask-parser/src/maskfile.rs index c5f0f28..cf35293 100644 --- a/mask-parser/src/maskfile.rs +++ b/mask-parser/src/maskfile.rs @@ -22,6 +22,7 @@ pub struct Command { pub script: Option