WP-CLI 命令行手册

title: "Given /^an? ([^\s]+) (file|cache file):$/" post_status: publish comment_status: open taxonomy: category: - wp-cli-handbook post_tag: - Behat Steps - Repos - Data


Given /^an? ([^\s]+) (file|cache file):$/

创建一个包含指定内容的文件。


使用方法

文件可以在当前工作目录或缓存目录中创建。

Scenario: My example scenario
  Given a wp-cli.yml file:
    """
    @foo:
      path: foo
      user: admin
    """

Behat 步骤文档随每次 WP-CLI 版本发布从代码库自动生成。如需改进建议,请提交拉取请求。


相关