in rostran/cli/__main__.py [0:0]
def transform(
source_path: str = typer.Argument(
...,
help="The path of the source template file, which can be a template file in Excel, Terraform, "
"AWS CloudFormation or AlibabaCloud ROS format.",
),
source_format: SourceTemplateFormat = typer.Option(
SourceTemplateFormat.Auto,
"--source-format",
"-S",
show_default=False,
help="The format of the source template file. The source file format is determined by the suffix "
"of SOURCE_PATH by default. [default: auto]",
),
target_path: str = typer.Option(
None,
"--target-path",
"-t",
help="The file path of the generated ROS or Terraform template. Default to current directory.",
),
target_format: TargetTemplateFormat = typer.Option(
TargetTemplateFormat.Auto,
"--target-format",
"-T",
show_default=False,
help="The generated template format. [default: auto]",
),
compatible: bool = typer.Option(
False,
show_default=True,
help="Whether to use compatible mode when transforming Terraform to ROS template. If compatible, "
"keep the Terraform file content in the generated ROS template. Otherwise, it is transformed "
"to a template using ROS syntax. This option is only available for Terraform template files.",
),
force: bool = typer.Option(
False,
show_default=True,
help="Whether to overwrite existing target file.",
),
extra_files: List[str] = typer.Option(
None,
show_default=True,
help="Add extra files, which supporting the specification of multiple files with fuzzy matching, "
"when transforming Terraform to ROS template in compatible mode. "
"This option is only available for Terraform template files in compatible mode.",
),