backlog-exporter 0.5.0 → 0.5.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.
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ $ npm install -g backlog-exporter
|
|
|
66
66
|
$ backlog-exporter COMMAND
|
|
67
67
|
running command...
|
|
68
68
|
$ backlog-exporter (--version)
|
|
69
|
-
backlog-exporter/0.5.
|
|
69
|
+
backlog-exporter/0.5.1 linux-x64 node-v24.2.0
|
|
70
70
|
$ backlog-exporter --help [COMMAND]
|
|
71
71
|
USAGE
|
|
72
72
|
$ backlog-exporter COMMAND
|
|
@@ -281,7 +281,7 @@ EXAMPLES
|
|
|
281
281
|
最大1000件の課題を取得する(デフォルトは5000件)
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
-
_See code: [src/commands/all/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.
|
|
284
|
+
_See code: [src/commands/all/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.1/src/commands/all/index.ts)_
|
|
285
285
|
|
|
286
286
|
## `backlog-exporter document`
|
|
287
287
|
|
|
@@ -313,7 +313,7 @@ EXAMPLES
|
|
|
313
313
|
キーワード「仕様書」を含むドキュメントのみを取得する
|
|
314
314
|
```
|
|
315
315
|
|
|
316
|
-
_See code: [src/commands/document/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.
|
|
316
|
+
_See code: [src/commands/document/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.1/src/commands/document/index.ts)_
|
|
317
317
|
|
|
318
318
|
## `backlog-exporter help [COMMAND]`
|
|
319
319
|
|
|
@@ -369,7 +369,7 @@ EXAMPLES
|
|
|
369
369
|
最大10000件の課題を取得する(デフォルトは5000件)
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
_See code: [src/commands/issue/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.
|
|
372
|
+
_See code: [src/commands/issue/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.1/src/commands/issue/index.ts)_
|
|
373
373
|
|
|
374
374
|
## `backlog-exporter plugins`
|
|
375
375
|
|
|
@@ -699,7 +699,7 @@ EXAMPLES
|
|
|
699
699
|
指定したディレクトリの設定を使用して更新する
|
|
700
700
|
```
|
|
701
701
|
|
|
702
|
-
_See code: [src/commands/update/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.
|
|
702
|
+
_See code: [src/commands/update/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.1/src/commands/update/index.ts)_
|
|
703
703
|
|
|
704
704
|
## `backlog-exporter wiki`
|
|
705
705
|
|
|
@@ -726,7 +726,7 @@ EXAMPLES
|
|
|
726
726
|
指定したディレクトリにWikiを保存する
|
|
727
727
|
```
|
|
728
728
|
|
|
729
|
-
_See code: [src/commands/wiki/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.
|
|
729
|
+
_See code: [src/commands/wiki/index.ts](https://github.com/ShuntaToda/backlog-exporter/blob/v0.5.1/src/commands/wiki/index.ts)_
|
|
730
730
|
<!-- commandsstop -->
|
|
731
731
|
|
|
732
732
|
# 出力形式
|
|
@@ -320,7 +320,7 @@ export async function downloadDocuments(command, options) {
|
|
|
320
320
|
const dirPath = path.dirname(documentFilePath);
|
|
321
321
|
await fs.mkdir(dirPath, { recursive: true });
|
|
322
322
|
// Backlogのドキュメントへのリンクを作成
|
|
323
|
-
const backlogDocumentUrl = `https://${options.domain}/document/${node.id}`;
|
|
323
|
+
const backlogDocumentUrl = `https://${options.domain}/document/${options.projectIdOrKey}/${node.id}`;
|
|
324
324
|
// 添付ファイルリストの作成
|
|
325
325
|
let attachmentsSection = '';
|
|
326
326
|
if (documentDetail.attachments && documentDetail.attachments.length > 0) {
|
package/oclif.manifest.json
CHANGED
|
@@ -70,14 +70,15 @@
|
|
|
70
70
|
"index.js"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
"
|
|
73
|
+
"issue": {
|
|
74
74
|
"aliases": [],
|
|
75
75
|
"args": {},
|
|
76
|
-
"description": "Backlog
|
|
76
|
+
"description": "Backlogから課題を取得してMarkdownファイルとして保存する",
|
|
77
77
|
"examples": [
|
|
78
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY\n
|
|
79
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./my-
|
|
80
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --
|
|
78
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY\n課題をMarkdownファイルとして保存する\n",
|
|
79
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./my-issues\n指定したディレクトリに課題を保存する\n",
|
|
80
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --statusId 1,2,3\n指定したステータスIDの課題のみを取得する\n",
|
|
81
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --maxCount 10000\n最大10000件の課題を取得する(デフォルトは5000件)\n"
|
|
81
82
|
],
|
|
82
83
|
"flags": {
|
|
83
84
|
"apiKey": {
|
|
@@ -96,10 +97,12 @@
|
|
|
96
97
|
"multiple": false,
|
|
97
98
|
"type": "option"
|
|
98
99
|
},
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
100
|
+
"maxCount": {
|
|
101
|
+
"char": "m",
|
|
102
|
+
"description": "一度に取得する課題の最大数(デフォルト: 5000)",
|
|
103
|
+
"name": "maxCount",
|
|
102
104
|
"required": false,
|
|
105
|
+
"default": 5000,
|
|
103
106
|
"hasDynamicHelp": false,
|
|
104
107
|
"multiple": false,
|
|
105
108
|
"type": "option"
|
|
@@ -120,11 +123,19 @@
|
|
|
120
123
|
"hasDynamicHelp": false,
|
|
121
124
|
"multiple": false,
|
|
122
125
|
"type": "option"
|
|
126
|
+
},
|
|
127
|
+
"statusId": {
|
|
128
|
+
"description": "ステータスID(カンマ区切りで複数指定可能)",
|
|
129
|
+
"name": "statusId",
|
|
130
|
+
"required": false,
|
|
131
|
+
"hasDynamicHelp": false,
|
|
132
|
+
"multiple": false,
|
|
133
|
+
"type": "option"
|
|
123
134
|
}
|
|
124
135
|
},
|
|
125
136
|
"hasDynamicHelp": false,
|
|
126
137
|
"hiddenAliases": [],
|
|
127
|
-
"id": "
|
|
138
|
+
"id": "issue",
|
|
128
139
|
"pluginAlias": "backlog-exporter",
|
|
129
140
|
"pluginName": "backlog-exporter",
|
|
130
141
|
"pluginType": "core",
|
|
@@ -134,19 +145,18 @@
|
|
|
134
145
|
"relativePath": [
|
|
135
146
|
"dist",
|
|
136
147
|
"commands",
|
|
137
|
-
"
|
|
148
|
+
"issue",
|
|
138
149
|
"index.js"
|
|
139
150
|
]
|
|
140
151
|
},
|
|
141
|
-
"
|
|
152
|
+
"document": {
|
|
142
153
|
"aliases": [],
|
|
143
154
|
"args": {},
|
|
144
|
-
"description": "Backlog
|
|
155
|
+
"description": "Backlogからドキュメントを取得してMarkdownファイルとして保存する",
|
|
145
156
|
"examples": [
|
|
146
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY\n
|
|
147
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./my-
|
|
148
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --
|
|
149
|
-
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --maxCount 10000\n最大10000件の課題を取得する(デフォルトは5000件)\n"
|
|
157
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY\nドキュメントをMarkdownファイルとして保存する\n",
|
|
158
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./my-documents\n指定したディレクトリにドキュメントを保存する\n",
|
|
159
|
+
"<%= config.bin %> <%= command.id %> --domain example.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --keyword 仕様書\nキーワード「仕様書」を含むドキュメントのみを取得する\n"
|
|
150
160
|
],
|
|
151
161
|
"flags": {
|
|
152
162
|
"apiKey": {
|
|
@@ -165,12 +175,10 @@
|
|
|
165
175
|
"multiple": false,
|
|
166
176
|
"type": "option"
|
|
167
177
|
},
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"name": "maxCount",
|
|
178
|
+
"keyword": {
|
|
179
|
+
"description": "検索キーワード",
|
|
180
|
+
"name": "keyword",
|
|
172
181
|
"required": false,
|
|
173
|
-
"default": 5000,
|
|
174
182
|
"hasDynamicHelp": false,
|
|
175
183
|
"multiple": false,
|
|
176
184
|
"type": "option"
|
|
@@ -191,19 +199,11 @@
|
|
|
191
199
|
"hasDynamicHelp": false,
|
|
192
200
|
"multiple": false,
|
|
193
201
|
"type": "option"
|
|
194
|
-
},
|
|
195
|
-
"statusId": {
|
|
196
|
-
"description": "ステータスID(カンマ区切りで複数指定可能)",
|
|
197
|
-
"name": "statusId",
|
|
198
|
-
"required": false,
|
|
199
|
-
"hasDynamicHelp": false,
|
|
200
|
-
"multiple": false,
|
|
201
|
-
"type": "option"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
"hasDynamicHelp": false,
|
|
205
205
|
"hiddenAliases": [],
|
|
206
|
-
"id": "
|
|
206
|
+
"id": "document",
|
|
207
207
|
"pluginAlias": "backlog-exporter",
|
|
208
208
|
"pluginName": "backlog-exporter",
|
|
209
209
|
"pluginType": "core",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"relativePath": [
|
|
214
214
|
"dist",
|
|
215
215
|
"commands",
|
|
216
|
-
"
|
|
216
|
+
"document",
|
|
217
217
|
"index.js"
|
|
218
218
|
]
|
|
219
219
|
},
|
|
@@ -364,5 +364,5 @@
|
|
|
364
364
|
]
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
|
-
"version": "0.5.
|
|
367
|
+
"version": "0.5.1"
|
|
368
368
|
}
|