3.40. hammer import-templates


从 git 仓库或服务器上的目录导入模板

Usage:
    hammer import-templates [OPTIONS]

Options:
 --associate ENUM              Associate to OS's, Locations & Organizations. Options are: always, new or never.
                               Possible value(s): 'always', 'new', 'never'
 --branch VALUE                Branch in Git repo.
 --dirname VALUE               The directory within Git repo containing the templates
 --filter VALUE                Export templates with names matching this regex (case-insensitive; snippets are
                               not filtered).
 --force BOOLEAN               Update templates that are locked
 --location VALUE              Set the current location context for the request
 --location-id NUMBER          Set the current location context for the request
 --location-ids LIST           REPLACE locations with given ids
 --location-title VALUE        Set the current location context for the request
 --location-titles LIST
 --locations LIST
 --lock ENUM                   Lock imported templates
                               Possible value(s): 'lock', 'keep_lock_new', 'keep', 'unlock', 'true', 'false',
                               '0', '1'
 --negate BOOLEAN              Negate the prefix (for purging).
 --organization VALUE          Set the current organization context for the request
 --organization-id NUMBER      Set the current organization context for the request
 --organization-ids LIST       REPLACE organizations with given ids.
 --organization-title VALUE    Set the current organization context for the request
 --organization-titles LIST
 --organizations LIST
 --prefix VALUE                The string all imported templates should begin with.
 --repo VALUE                  Override the default repo from settings.
 --verbose BOOLEAN             Show template diff in response
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.