2020 年 04 月 - 3 文章

GitHub Action

  |   0 评论   |   0 浏览

WorkFlow GithubWorkFlow 就是 Git 自带的 CI 服务 WorkFlow 文件 name: Greet Everyone # 事件 on: [push] # 工作集合 jobs: build: # 作业名称为 Greeting name: Greeting # 此作业在 Linux 上运行,runs-on 选项一共就有几种类型 runs-on: ubuntu-latest steps: # 此步骤使用 GitHub 的 hello-world-javascript-action:https://github.com/actions/hello-world-javascript-action - name: Hello world uses: actions/hello-world-javascript-action@v1 with: who-to-greet: 'Mona the Octocat' id: hello # 此步骤打印上一步操作的输出(时间)。 - name: Echo the greeting's time run: echo 'The time was $....

解析cobra

  |   0 评论   |   0 浏览

Cobra // Copyright © 2015 Steve Francia <spf@spf13.com>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or ....