Giter VIP home page Giter VIP logo

chi-cli's Introduction

chi 工具

這是一個用於管理 ChangeLog 的命令行工具(CLI),它提供了一系列命令來創建和維護 ChangeLog 文件。

功能

  • start :啟動頁面
  • init:新增一個新的空白 ChangeLog 文件。
  • add:向 ChangeLog 文件添加一條新條目。
  • release:將當前的 ChangeLog 標記為已發布。
  • add-version:向 ChangeLog 添加一個新的版本標記。
  • test:運行一組基本的測試來確保 ChangeLog 功能正常。

安裝

clone此存儲庫,然後在您的項目目錄中運行:

npm install 

使用

在命令行中使用 chi 命令,後跟相應的子命令。例如:

chi start -p 5000     # 指定 5000 當port
chi init              # 創建一個新的 ChangeLog
chi add -m "新功能"    # 添加一條包含消息 "新功能" 的條目
chi release           # 標記 ChangeLog 為已發布
chi add-version -v "版本" -d "描述"

使用API來開發

{
  "posts": [
    {
      "id": 1,
      "title": "json-server",
      "author": "typicode"
    }
  ],
  "comments": [
    {
      "id": 1,
      "body": "some comment",
      "postId": 1
    }
  ],
  "profile": {
    "name": "typicode"
  }
}
http://127.0.0.1:8787/read?fileName=test.json     #獲取test.json的data

http://127.0.0.1:8787/read/posts?fileName=test.json        #獲取posts變數內的data
http://127.0.0.1:8787/read/comments?fileName=test.json     #獲取comments變數內的data
http://127.0.0.1:8787/read/profile?fileName=test.json      #獲取profile變數內的data

開發

此工具使用 Node.js 開發。您可以查看 src 目錄中的代碼來了解更多實現細節。

測試

要運行測試,使用以下命令:

chi test

授權

MIT

chi-cli's People

Contributors

supermarpig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.