INNER CODE UNIT · Python

ctx

flyteorg/flytekit · flytekit/clis/flyte_cli/main.py:501

        ctx = super(_FlyteSubCommand, self).make_context(cmd_name, prefix_args + args, parent=parent)
        ctx.obj = ctx.obj or {}
        ctx.obj["cacert"] = parent.params["cacert"] or None
        if cmd_name == "setup-config":
            return ctx

        config_file = parent.params["config"]
        if config_file is None:
            # Run this as the module is loading to pick up settings that click can
            # then use when constructing the commands
            config_file = _detect_default_config_file()

        config_obj = configuration.PlatformConfig.auto(config_file=config_file)

        # These two flags are special in that they are specifiable in both the user's default ~/.flyte/config file,
        # and in the flyte-cli command itself, both in the parent-command position (flyte-cli) , and in the
        # child-command position (e.g. list-task-names).
        # For both host and insecure, command line values will override the setting in a config file.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…