-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add templateable variable parsing to launcher command
This adds templatable variable parsing to the launcher command. Variables are defined as key/value pairs in the `tui.Update:` `case loginMsg:` section. Any variables defined there will be parsed and replaced with their values if the variables are used in the user's `terminal` or `cluster_login_command` config options in the srepd.yaml file. Eg: `cluster_login_command: ocm-container --cluster-id %%CLUSTER_ID%% --launch-opts --env=INCIDENT_ID=%%INCIDENT_ID%%` Supported variables are currently `%%CLUSTER_ID%%` and `%%INCIDENT_ID%%` Signed-off-by: Chris Collins <[email protected]>
- Loading branch information
Showing
5 changed files
with
87 additions
and
20 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
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