-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: variable string substitution functions (#148)
* start variable string substitution functions * Minor fixes along with partial support for variable default to another expression * Small fixes * Added WordResult * Added state modification * Mutate state where needed * Fix bugs with tests * replaced variable with variable expansion in quoted words * Add state modification in arithmetic ops * Remove extra comment and remove test script * Removed extra prints * Added tests for default value expansion * Added support for default value assign with tests * Added support for alternate value expansion with tests * Add tmate for debugging * Updated behaviour of shell vars on Windows * run fmt * Remove tmate * Added tests for lowercase shell vars * Added support for arithmetic exprs and negative values in substring expansion * Disable codecov comments * Use miette::bail! more often * Add double quoted tests --------- Co-authored-by: prsabahrami <[email protected]> Co-authored-by: Julian Hofer <[email protected]>
- Loading branch information
1 parent
9ecd2c3
commit cc84630
Showing
6 changed files
with
1,039 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.