-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds another Earthly command called `FUNCTION` which will replace the command `COMMAND`. For now `COMMAND` can still be used, but it will show a deprecation message explaining to use a feature flag (`--use-function-keyword`) and rename `COMMAND` TO `FUNCTION`. When the flag is off => `FUNCTION` can't be used. When the flag is on => `COMMAND` can't be used. I'd appreciate a review, specifically on the lexer and parser files where I simply copied the existing configuration for `COMMAND` as `FUNCTION`
- Loading branch information
Showing
53 changed files
with
2,968 additions
and
1,922 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ func init() { | |
UserCmd: User, | ||
VolumeCmd: Volume, | ||
WorkdirCmd: Workdir, | ||
FunctionCmd: Function, | ||
} | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,5 @@ const ( | |
UserCmd // "USER" | ||
VolumeCmd // "VOLUME" | ||
WorkdirCmd // "WORKDIR" | ||
FunctionCmd // "FUNCTION" | ||
) |
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.