kup-cli 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +33 -10
  2. package/README.zh.md +15 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,26 +4,28 @@ English | [中文](README.zh.md)
4
4
 
5
5
  <img src="https://user-images.githubusercontent.com/1231359/171321963-e8e73bdf-f9c8-435b-9707-318e92f1805a.png" width="150" height="80" align="right" alt="Kup logo">
6
6
 
7
- > A CLI tool to sync local Markdown files to GitHub issues.
7
+ > A CLI tool to sync local Markdown files and GitHub issues bidirectionally.
8
8
  >
9
- > 这款命令行工具可以把本地的 Markdown 文件同步到 GitHub issue。
9
+ > 一款命令行工具,实现本地 Markdown 文件与 GitHub Issues 的双向同步。
10
+
11
+
10
12
 
11
13
  ## Who Is It For
12
14
 
13
- * Bloggers who publish with GitHub issues and want to edit drafts locally, then publish new posts or update existing ones at any time.
14
- * Open-source authors who publish documentation through GitHub issues and want to sync docs from the repository to specific issues.
15
+ * Bloggers who publish with GitHub issues and want to edit drafts locally.
16
+ * Open-source authors who publish documentation through GitHub issues.
15
17
  * Anyone else who needs to update GitHub issues frequently.
16
18
 
17
19
 
18
- ## Installation
19
20
 
20
- Install it globally so you can call it from the command line at any time:
21
+ ## Installation
21
22
 
22
23
  ```sh
23
24
  npm install -g kup-cli
24
25
  ```
25
26
 
26
- (When a new version of Kup is released, run the same command again to upgrade.)
27
+ Install it globally so you can use it anytime, anywhere from the command line. (When a new version of Kup is released, run the same command again to upgrade.)
28
+
27
29
 
28
30
 
29
31
  ## Usage
@@ -73,17 +75,35 @@ Updating GitHub issues requires authentication, so you need to provide a GitHub
73
75
  If Kup cannot read a token from the environment, it will prompt you for one in the terminal.
74
76
 
75
77
 
78
+
76
79
  ## Command-Line Options
77
80
 
78
- Option | Short | Value Type | Description | Notes
79
- ---|---|---|---|---
81
+ Option | Short | Value Type | Description
82
+ ---|---|---|---
80
83
  `--repo` | `-r` | string | Specify the GitHub repository
81
- `--id` | `-i` | integer | Specify the issue number | <ul><li>Providing a number means updating an existing issue<li>Omitting it means publishing a new issue</ul>
84
+ `--id` | `-i` | integer | Specify the issue number: <ul><li>Providing a number means updating an existing issue<li>Omitting it means publishing a new issue</ul>
82
85
  `--dump` | `-d` | - | Enable dump mode, save a GitHub issue as a local Markdown file
83
86
  `--version` | `-v` | - | Show the version number
84
87
  `--help` | `-h` | - | Show help information
85
88
 
86
89
 
90
+
91
+ &nbsp;
92
+
93
+ > ***
94
+ >
95
+ > ### **🙋‍♂️ Open to Work (Remote, Global)**
96
+ >
97
+ > * Senior Fullstack Engineer · Node.js, React, Vue, TS · 10+ years
98
+ > * Published author on “AI Coding” · GitHub 3k+ followers
99
+ > * → Resume / Contact: https://github.com/cssmagic/cssmagic
100
+ >
101
+ > ***
102
+
103
+ &nbsp;
104
+
105
+
106
+
87
107
  ## Advanced
88
108
 
89
109
  ### How can I specify the `repo` option more conveniently?
@@ -132,12 +152,15 @@ What happens if there is no `tags` field in the metadata?
132
152
 
133
153
  When updating an existing issue, if the labels specified in the metadata differ from the issue's current labels, the new set completely replaces the old one.
134
154
 
155
+
156
+
135
157
  ## Documentation
136
158
 
137
159
  * [Metadata examples for Markdown files](https://github.com/cssmagic/kup/issues/1)
138
160
  * [How to generate an appropriate GitHub token for Kup](https://github.com/cssmagic/kup/issues/17)
139
161
 
140
162
 
163
+
141
164
  ## Other
142
165
 
143
166
  ### Roadmap
package/README.zh.md CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  <img src="https://user-images.githubusercontent.com/1231359/171321963-e8e73bdf-f9c8-435b-9707-318e92f1805a.png" width="150" height="80" align="right" alt="Kup logo">
6
6
 
7
- > A CLI tool to sync local Markdown files to GitHub issues.
7
+ > A CLI tool to sync local Markdown files and GitHub issues bidirectionally.
8
8
  >
9
- > 这款命令行工具可以把本地的 Markdown 文件同步到 GitHub issue。
9
+ > 一款命令行工具,实现本地 Markdown 文件与 GitHub Issues 的双向同步。
10
+
11
+
10
12
 
11
13
  ## 谁需要它
12
14
 
@@ -15,15 +17,15 @@
15
17
  * 其它需要频繁更新 GitHub issue 的人。
16
18
 
17
19
 
18
- ## 安装
19
20
 
20
- 需要全局安装,以便随时在命令行调用:
21
+ ## 安装
21
22
 
22
23
  ```sh
23
24
  npm install -g kup-cli
24
25
  ```
25
26
 
26
- (当 Kup 发布新版时,可以再次运行这行命令升级已安装的版本。)
27
+ 需要全局安装,以便随时在命令行调用。(当 Kup 发布新版时,可以再次运行这行命令升级已安装的版本。)
28
+
27
29
 
28
30
 
29
31
  ## 使用方法
@@ -73,17 +75,19 @@ kup ./path/to/file.md --dump --repo foo/bar --id 123
73
75
  如果 Kup 未能从环境变量获取 token,会在命令行向你询问。
74
76
 
75
77
 
78
+
76
79
  ## 命令行参数
77
80
 
78
- 参数 | 短名 | 值类型 | 含义 | 备注
79
- ---|---|---|---|---
81
+ 参数 | 短名 | 值类型 | 含义
82
+ ---|---|---|---
80
83
  `--repo` | `-r` | 字符串 | 指定 GitHub 仓库
81
- `--id` | `-i` | 整数 | 指定 issue 的编号 | <ul><li>指定编号表示更新已有 issue<li>未指定编号则表示发布新 issue</ul>
84
+ `--id` | `-i` | 整数 | 指定 issue 的编号: <ul><li>指定编号表示更新已有 issue<li>未指定编号则表示发布新 issue</ul>
82
85
  `--dump` | `-d` | - | 激活采集模式,把 GitHub issue 保存为本地 Markdown 文件
83
86
  `--version` | `-v` | - | 显示版本号
84
87
  `--help` | `-h` | - | 显示帮助信息
85
88
 
86
89
 
90
+
87
91
  ## 进阶
88
92
 
89
93
  ### 如何更方便地指定 `repo` 参数?
@@ -132,12 +136,15 @@ Kup 会通过以下线索来确定 issue 的标题,优先级递减:
132
136
 
133
137
  在更新已有 issue 时,如果元数据指定的标签与 issue 现有标签不一致,则前者会完全替代后者。
134
138
 
139
+
140
+
135
141
  ## 文档
136
142
 
137
143
  * [Markdown 文件内的元数据示例](https://github.com/cssmagic/kup/issues/1)
138
144
  * [如何为 Kup 生成合适的 GitHub token](https://github.com/cssmagic/kup/issues/17)
139
145
 
140
146
 
147
+
141
148
  ## 其它
142
149
 
143
150
  ### 开发计划
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kup-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A CLI tool to sync local Markdown files to GitHub issues.",
5
5
  "type": "module",
6
6
  "bin": {