buildHelpText function

String buildHelpText({
  1. required String executableName,
  2. required String version,
})

Implementation

String buildHelpText({
  required String executableName,
  required String version,
}) {
  return '''
Rebrand CLI v$version

Usage:
  $executableName [project_path]
  $executableName --project <path> [--config <path>]

Options:
  -h, --help
      Show usage information and full descriptions for each command.
  -v, --version
      Print the CLI package version.
  -p, --project <path>
      Path to the Flutter project root to update.
  -c, --config <path>
      Load a custom JSON config file instead of the default rebrand_config.json.
  --rename
      Rename the Android/iOS package identifier only. Uses package_name from the config.
  --label, --app-name
      Update the app display name only. Uses app_name from the config.
  --launcher
      Generate launcher icon assets only. Uses icon_path from the config.
  --splash
      Generate native splash screens only. Uses splash_config or icon_path from the config.

Notes:
  If no explicit action flags are passed, the CLI will perform all actions available in the config.
  If explicit flags are provided, only the requested task(s) will run.

Examples:
  $executableName
  $executableName .
  $executableName --project ./example --config ./example/rebrand_config.json
''';
}