def _parse_arguments(args): parser = argparse.ArgumentParser(description="Monorepo Pom Generator") parser.add_argument("--package", type=str, required=True, help="Narrows pomgen to the specified package(s). " + argsupport.get_package_doc()) parser.add_argument("--destdir", type=str, required=True, help="The root directory generated poms are written to") parser.add_argument("--repo_root", type=str, required=False, help="The root of the repository") parser.add_argument("--recursive", required=False, action='store_true', help="Also generate poms for dependencies, disabled by default") parser.add_argument("--force", required=False, action='store_true', help="If set, always generated poms, regardless of whether an artifact has changed since it was last released") parser.add_argument("--pom_goldfile", required=False, action='store_true', help="Generates a goldfile pom") parser.add_argument("--verbose", required=False, action='store_true', help="Verbose output") return parser.parse_args(args)
def _parse_arguments(args): parser = argparse.ArgumentParser(description="Query Maven artifact metadata") parser.add_argument("--package", type=str, required=False, help="Narrows queries to the specified package(s). " + argsupport.get_package_doc()) parser.add_argument("--repo_root", type=str, required=False, help="the root of the repository") parser.add_argument("--list_libraries", action='store_true', required=False, help="Prints list of libraries under the specified package - output is json") parser.add_argument("--list_artifacts", action='store_true', required=False, help="Prints list of artifacts under the specified package - output is json") parser.add_argument("--list_all_external_dependencies", action='store_true', required=False, help="Prints list of all declared external dependencies, ignores the 'package' argument - output is json") parser.add_argument("--library_release_plan_tree", action='store_true', required=False, help="Prints release information about the libraries in the monorepo - output is human-readable") parser.add_argument("--library_release_plan_json", action='store_true', required=False, help="Prints release information about the libraries in the monorepo - output is json") parser.add_argument("--artifact_release_plan", action='store_true', required=False, help="Prints release information about the artifacts in the monorepo - output is json") parser.add_argument("--verbose", required=False, action='store_true', help="Verbose output") # this is experimental and not generalized yet parser.add_argument("--filter", type=str, required=False, help="Generic query filter, currently only supported for artifact queries") return parser.parse_args(args)
def _parse_arguments(args): parser = argparse.ArgumentParser( description="Query Maven artifact metadata") parser.add_argument("--package", type=str, required=False, help="Narrows queries to the specified package(s). " + argsupport.get_package_doc()) parser.add_argument("--repo_root", type=str, required=False, help="the root of the repository") parser.add_argument( "--list_libraries", action="store_true", required=False, help= "Prints list of libraries under the specified package - output is json" ) parser.add_argument( "--list_artifacts", action="store_true", required=False, help= "Prints list of artifacts under the specified package - output is json" ) parser.add_argument( "--list_external_dependencies", action="store_true", required=False, help= "Prints list of all declared external dependencies, ignores the 'package' argument - output is json" ) parser.add_argument( "--library_release_plan_tree", action="store_true", required=False, help= "Prints release information about the libraries in the monorepo - output is human-readable" ) parser.add_argument( "--library_release_plan_json", action="store_true", required=False, help= "Prints release information about the libraries in the monorepo - output is json" ) parser.add_argument( "--artifact_release_plan", action="store_true", required=False, help= "Prints release information about the artifacts in the monorepo - output is json" ) parser.add_argument("--verbose", required=False, action="store_true", help="Verbose output") parser.add_argument( "--filter", type=str, required=False, help="Experimental support for further narrowing down results") parser.add_argument( "--force", required=False, action="store_true", help="Simulates release information when --force option is used") return parser.parse_args(args)
def _parse_arguments(args): parser = argparse.ArgumentParser( description="Updates Maven artifact metadata") parser.add_argument( "--package", type=str, required=True, help="Updates BUILD.pom files under the specified package(s). " + argsupport.get_package_doc()) parser.add_argument( "--new_version", type=str, required=False, help="The value of the version to write into BUILD.pom files") parser.add_argument( "--new_version_increment_strategy", type=str, required=False, choices=VERSION_INCREMENT_STRATEGIES, help= "The value of the version_increment_strategy to write into BUILD.pom files" ) parser.add_argument( "--new_released_version", type=str, required=False, help="The value of the version to write into BUILD.pom.released files") parser.add_argument( "--new_released_artifact_hash", type=str, required=False, help= "The value of the artifact_hash to write into BUILD.pom.released files" ) parser.add_argument( "--update_released_artifact_hash_to_current", required=False, action='store_true', help= "Writes the value of the current artifact hash under the specified package into the BUILD.pom.released file" ) parser.add_argument( "--update_version_using_version_increment_strategy", required=False, action='store_true', help= "Updates the version in BUILD.pom files, by incrementing it using the version_increment_strategy specified in the same file" ) parser.add_argument( "--set_version_to_last_released", required=False, action='store_true', help= "Updates the version in BUILD.pom files, by setting it to the last released version specified in the corresponding BUILD.pom.released files" ) parser.add_argument( "--add_version_qualifier", required=False, type=str, help= "Adds the specified string to the end of the version, using '-' as a separator. If the version ends with \"-SNAPSHOT\", the specified qualifier is added before the snapshot suffix" ) parser.add_argument( "--new_pom_generation_mode", required=False, type=str, help= "Adds or updates the value of 'pom_generation_mode' in BUILD.pom files" ) parser.add_argument( "--add_missing_pom_generation_mode", required=False, action='store_true', help="Adds missing 'pom_generation_mode' to BUILD.pom files") parser.add_argument("--repo_root", type=str, required=False, help="the root of the repository") return parser.parse_args(args)