Skip to content

Commit

Permalink
Merge pull request #133 from Karandash8/130-fix-name-of-the-applicati…
Browse files Browse the repository at this point in the history
…on-in-help

Fix application name in help
  • Loading branch information
Karandash8 authored Nov 25, 2024
2 parents 6b118eb + b8db154 commit 1b5ccfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion make_argocd_fly/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def generate() -> None:


def main() -> None:
parser = argparse.ArgumentParser(description='Render ArgoCD Applications.')
parser = argparse.ArgumentParser(prog='make-argocd-fly', description='Render ArgoCD Applications.')
parser.add_argument('--root-dir', type=str, default=os.getcwd(), help='Root directory (default: current directory)')
parser.add_argument('--config-file', type=str, default=CONFIG_FILE, help='Configuration file (default: config.yml)')
parser.add_argument('--source-dir', type=str, default=SOURCE_DIR, help='Source files directory (default: source)')
Expand Down
4 changes: 3 additions & 1 deletion make_argocd_fly/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ def increase_indent(self, flow=False, *args, **kwargs):


def represent_str(dumper, data):
"""configures yaml for dumping multiline strings
"""configures pyyaml for dumping multiline strings
Ref: https://stackoverflow.com/questions/8640959/how-can-i-control-what-scalar-form-pyyaml-uses-for-my-data"""
if data.count('\n') > 0:
return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|')
"""configure pyyaml for dumping numbers that start with 0 as strings
Ref: https://github.com/yaml/pyyaml/issues/98"""
if data.startswith('0'):
try:
int(data[1:])
Expand Down

0 comments on commit 1b5ccfc

Please sign in to comment.