code: def publish_params(fn):
      click_util.append_params(
          fn,
          [
              runs_support.runs_arg,
              click.Option(
                  ("-d", "--dest"),
                  metavar="DIR",
                  help="Destination to publish runs.",
                  shell_complete=_ac_dir,
              ),
              click.Option(
                  ("-t", "--template"),
                  metavar="VAL",
                  help="Run template used to publish runs.",
              ),
              click.Option(
                  ("-i", "--index-template"),
                  metavar="VAL",
                  help="Index template used to publish runs.",
              ),
              click.Option(
                  ("-f", "--files"),
                  help=(
                      "Copy run files as configured by the operation. "
                      "By default, run files are not copied. Use `--all-files` "
                      "to copy all files regardless of how the operation is "
                      "configured."
                  ),
                  is_flag=True,
              ),
              click.Option(
                  ("-a", "--all-files"),
                  help=(
                      "Copy all run files. By default, run files are not copied. "
                      "Use `--files` to copy only files as configured by the "
                      "operation."
                  ),
                  is_flag=True,
              ),
              click.Option(
                  ("-L", "--include-links"),
                  help="Include links when publishing files. Implies --files.",
                  is_flag=True,
              ),
              click.Option(
                  ("--no-md5",),
                  help="Do not calculate MD5 digests for run files.",
                  is_flag=True,
              ),
              click.Option(
                  ("--include-batch",),
                  help="Include batch runs.",
                  is_flag=True,
              ),
              click.Option(
                  ("-r", "--refresh-index"),
                  help="Refresh runs index without publishing anything.",
                  is_flag=True,
              ),
              runs_support.all_filters,
              click.Option(
                  ("-y", "--yes"),
                  help="Do not prompt before publishing.",
                  is_flag=True,
              ),
          ],
      )
      return fn
  
imports: import click
  from guild import click_util
  from .None import ac_support
  from .None import runs_support
label_desc: Use image node_id 2 for calling a global function with example usage: publish_params(fn) and returns: fn