CI/CD tool of Chongqing Parsec Corp.
Project description
一、如何使用arms?
使用--help
命令熟悉arms:
(venv311) ➜ ~ arms --help
usage: arms [-h] {version,init,patch,config,search,update,design} ...
armstrong
positional arguments:
{version,init,patch,config,search,update,design}
version 显示版本
init 项目初始化工具
patch 项目补丁工具
config arms配置工具
search 项目搜索工具
update arms更新配置
design 生成文本并复制
options:
-h, --help show this help message and exit
第一步:配置arms
arms config ${PARSEC_GITLAB}/arms-tpl/source
第二步:搜索项目
对于kotlin项目,可以尝试:
(venv311) ➜ ~ arms search kotlin
spring-kotlin - kotlin on springboot with CI
kotlin-user - kotlin, 带用户体系
第三步:生成初始化代码
根据上一步的搜索接口,先cd到新创建的项目目录,执行:
git init # 如果目录下已经用.git目录则忽略
arms init kotlin-user
二、如何创建模版项目
以kotlin-user项目为例,在其项目根目录创建一个.arms.json
文件,内容为:
{
"__name__": [
{"word": "grpn", "hint": "组名称"},
{"word": "demo", "hint": "服务名称"}
]
}
然后在arms init ...
的时候arms就会要求用户输入「组名称」和「服务名称」,用于“智能地”替换"grpn"和"demo"。
arms也支持多级配置,例如下面这个前端CI模版的.arms.json
文件:
{
"管理端": {
"__name__": [{"word": "grpn", "hint": "组名称"}],
"__only__": ["docker", ".gitlab-ci.yml"]
},
"H5端": {
"__name__": [{"word": "grpn", "hint": "组名称"}],
"__only__": ["docker", ".gitlab-ci.yml:.gitlab-ci.mobile.yml"]
}
}
关键字列表
__name__: [{}] //依次提示用户输入
__only__: [""] //只包含的文件,支持改名
__except__: [""] //排除的文件
三、友情项目
- inky-flow-cli: ${PARSEC_GITLAB}/inky/flow_cli ,用于后端项目启动阶段,目标是生成openapi.json。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arms-1.9.0.tar.gz
(20.3 kB
view details)
Built Distribution
arms-1.9.0-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file arms-1.9.0.tar.gz
.
File metadata
- Download URL: arms-1.9.0.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c42c7c9e0af774b7c834a5f082cf33bc326d9b2d0b6100ee858e9f609a3dfe76 |
|
MD5 | 29b9cea328ed199b58f26fbaf4c83763 |
|
BLAKE2b-256 | c97f6933e7e418a17f574e8739bbc974970e0aa5d397e4924bfa666d2f25fc15 |
File details
Details for the file arms-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: arms-1.9.0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e706bb3d3b04f3901b95cbc94d44adbe12262d24750b9d5997d2313b5c4e734 |
|
MD5 | 21722bc2836252a10db6c8eed4a2be8a |
|
BLAKE2b-256 | 357757056ad3a8e5a34b00bef6e83b71ee8bc99f3d914f9cecc27996ad15107f |