aergie:一个简单的替代makefile的方法

  • h3_676892
    了解作者
  • 32KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-13 20:42
    上传日期
安装 运行以下安装程序以下载Aergie二进制文件: curl -sS https://get.aergie.com/install | sudo bash 如果可以,请在sudo中运行以上命令。 这将允许安装程序将脚本放在更好的目录中并安装自动完成功能。 如何使用Aergie 要做的第一件事是在项目的根目录下创建一个文件。 该文件可以具有多个可能的名称: .aergie.yml .aergie.yaml 然后,您只需要声明两个块: commands (必填) 您可以在此处声明允许您处理项目的不同命令。 命令的形式为: 描述 示例(请参见下面的示例) 姓名 这是命令元素的关键 start 帮助 句子来描述命令的作用 help: Start docker compose 脚步 每个动作都要执行的数组 steps: [docker-compose up -d] 例子:
aergie-master.zip
内容介绍
<h1 align="center"></h1> [![Continuous Integration](https://github.com/IQ2i/aergie/workflows/Continuous%20Integration/badge.svg?branch=master)](https://github.com/IQ2i/aergie/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/IQ2i/aergie)](https://goreportcard.com/report/github.com/IQ2i/aergie) [![Coverage Status](https://coveralls.io/repos/github/IQ2i/aergie/badge.svg?branch=master)](https://coveralls.io/github/IQ2i/aergie?branch=master) # Installation Run the following installer to download the Aergie binary: ```bash curl -sS https://get.aergie.com/install | sudo bash ``` If you can, run the above command in sudo. This will allow the installer to put the script in a better directory and to install the autocompletion. # How to use Aergie The first thing to do is to create a file at the root of your project. The file can have several possible names: * `.aergie.yml` * `.aergie.yaml` Then you just need to declare two blocks: ### `commands` (require) This is where you can declare the different commands that allow you to work on your project. A command is form with: | | Description | Example (see example below) | |-------|---------------------------------------------|-------------------------------------| | name | This is the key of the command element | `start` | | help | Sentence to describe what the command does | `help: Start docker compose` | | steps | An array with each action to be carried out | `steps: [docker-compose up -d]` | Example: ```yaml commands: start: help: Start docker compose steps: - docker-compose up -d stop: help: Stop docker compose steps: - docker-compose stop install: help: Install my application steps: - ${php} composer install - ... ``` ### `variables` (optional) You can declare variables to use in your steps: ```yaml variables: php: docker exec -it php_container_name commands: install: help: Install my application steps: - ${php} composer install ```
评论
    相关推荐
    • 高级Bash 脚本编程指南
      NULL 博文链接:https://xiajs.iteye.com/blog/1025751
    • bash shell
      NULL 博文链接:https://detox.iteye.com/blog/1882849
    • bash shell
      NULL 博文链接:https://detox.iteye.com/blog/1882849
    • steps-bash-script:已弃用-使用https
      将其输入另存为bash文件并运行。 使用此Bitrise步骤滚动您自己的自定义bash脚本! 此步骤是“步骤库”的一部分,您可以找到其“步骤库”页面 输入: 检查step.yml文件。 笔记: 现在应该使用新的content输入而...
    • Git-bash
      Git-bash:- 安装Git:- 要下载Git: 1.Go to https://git-scm.com/downloads 2.download the software for Windows 3.install Git choosing all the default options 首次Git配置:- 用您的名字设置Git: >>...
    • bash shell
      NULL 博文链接:https://detox.iteye.com/blog/1882849
    • BASH 中的字符串处理
      NULL 博文链接:https://lujinan858.iteye.com/blog/437004
    • bashstyle_examples:Bash示例遵循https上的样式指南
      遵循样式指南的Bash示例,为 包括可重复使用的bash-boilerplate.sh 还通过shellcheck bash* : : (在OSX上brew install shellcheck ) 用法示例: ./bash-example ./bash-example -V ./bash-example bye ...
    • bash shell
      NULL 博文链接:https://detox.iteye.com/blog/1882849
    • bash shell
      NULL 博文链接:https://detox.iteye.com/blog/1882849