How to use the ural.cli.domain.domain_action function in ural

To help you get started, we’ve selected a few ural examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github medialab / ural / ural / cli / __main__.py View on Github external
args = parser.parse_args()

    if args.action == 'help':
        target_subparser = SUBPARSERS.get(args.subcommand)

        if target_subparser is None:
            parser.print_help()
        else:
            target_subparser.print_help()

    elif args.action == 'normalize':
        normalize_action(args)

    elif args.action == 'domain':
        domain_action(args)

    elif args.action == 'join':
        join_action(args)

    elif args.action is None:
        parser.print_help()