Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ipuppet committed Aug 4, 2024
1 parent a6cd6c1 commit 41730e8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ Next, set the `Parameter Dictionary` to a `Dictionary`.
| get | Number |
| table | Text |

- `set`: The content will be saved to CAIO unless there is already an existing item with the same name.
- `set`: The content will be saved to CAIO unless there is already an existing item with the same content.
- `get`: The item at the specified index (e.g., 0) will be returned.
- `table`: It will specify the table to either set or get the item from, with options being `["favorite", "clips"]`. This parameter is optional and has a default value of `clips`.
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ Base Path: `/path/to/save`
| get | Number |
| table | Text |

- `set`:将把内容保存到CAIO中,除非已存在相同名称的项
- `set`:将把内容保存到CAIO中,除非已存在相同内容的项
- `get`:将返回指定索引(例如:0)处的项。
- `table`:将指定要设置或获取项的表格,可选项为 `["favorite", "clips"]`。此项可省略,默认值为 `clips`
6 changes: 4 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ async function build() {
}
} finally {
// 恢复文件内容
fs.unlinkSync(entryFilePath)
fs.unlinkSync(distEntryPath)
try {
fs.unlinkSync(entryFilePath)
fs.unlinkSync(distEntryPath)
} catch {}
fs.writeFileSync(packageJsonPath, packageJsonContent)
}
}
Expand Down
2 changes: 1 addition & 1 deletion dist/CAIO.json

Large diffs are not rendered by default.

0 comments on commit 41730e8

Please sign in to comment.