def create_subst()

in hack/create_kptfile.py [0:0]


def create_subst(name, value, pattern, cwd):
  command = ["kpt", "cfg", "create-subst", ".",  name,
             "--field-value", value,
             "--pattern", pattern]
  logging.info("Run:\n" + " ".join(command))
  subprocess.check_call(command,  cwd=cwd)