Skip to content

Commit

Permalink
fix typo and update CLI usage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchenn committed Oct 2, 2023
1 parent 84cefcd commit a1c5ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/CLI_USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Then, you can run the following to replace the variable value:
```
$ sb vars set project_id new-project-id
```
- This will find all occurance of the `sb-var:project_id` anchors in your folder, and replace with the new value "new-project-id"
- This will find all occurrence of the `sb-var:project_id` anchors in your folder, and replace with the new value "new-project-id"

The YAML file will become:

Expand Down Expand Up @@ -48,7 +48,7 @@ global_variables:
gcp_region: us-central1
```

Run the following to apply all these values to exsiting variables in all files.
Run the following to apply all these values to existing variables in all files.
```
$ sb vars apply-all
```
Expand Down
1 change: 0 additions & 1 deletion solutions_builder/cli/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def restore_template_in_comment(var_name, var_value, text):
match_pattern = f"(#\\s*sb-var:{var_name}:)(.*){var_value}(.*)"
output_pattern = f"\\1\\2{{{{{var_name}}}}}\\3"

text, count = re.subn(match_pattern, output_pattern, text)
text, count = re.subn(match_pattern, output_pattern, text)
return (text, count)

Expand Down

0 comments on commit a1c5ced

Please sign in to comment.