siyuan-sisyphus 0.1.13 → 0.1.15

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 +7 -1
  2. package/dist/cli.cjs +398 -75
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@ The published npm package is `siyuan-sisyphus`. It installs the primary command
12
12
 
13
13
  ```bash
14
14
  siyuan-sisyphus notebook list
15
- siyuan-sisyphus document create --notebook 20240318... --path "/Inbox/Test" --markdown "# Hello"
15
+ siyuan-sisyphus document create --notebook 20240318... --path "/Inbox/Test" --markdown "Hello"
16
16
  siyuan-sisyphus block append --parent-id 20240318abc --data-type markdown --data "- item"
17
17
  siyuan-sisyphus search fulltext --query "keyword" --page-size 10 --json | jq '.data[].hPath'
18
18
  ```
@@ -106,12 +106,18 @@ siyuan-sisyphus document get-doc --id 20240318xyz --mode markdown
106
106
  siyuan-sisyphus block info --id 20240318xyz
107
107
  siyuan-sisyphus block append --parent-id 20240318abc --data-type markdown --data "- new item"
108
108
  siyuan-sisyphus block get-kramdown --id 20240318xyz
109
+ siyuan-sisyphus block word-count --id 20240318xyz
109
110
 
110
111
  # Search
111
112
  siyuan-sisyphus search fulltext --query "TODO" --page-size 20
112
113
  siyuan-sisyphus search fulltext --query "TODO" --page 2 --page-size 20
113
114
  siyuan-sisyphus search query-sql --stmt "SELECT id, content FROM blocks WHERE type='h' LIMIT 5"
114
115
 
116
+ # Friendly aliases
117
+ siyuan-sisyphus fs replace --path "/Notebook/Doc" --old A --new B
118
+ siyuan-sisyphus av render --av-id <attribute-view-id>
119
+ siyuan-sisyphus file upload-asset --file /private/tmp/demo.txt
120
+
115
121
  # Piping to jq
116
122
  siyuan-sisyphus notebook list --json | jq '.[] | select(.closed==false) | .name'
117
123
  siyuan-sisyphus document search-docs --notebook <id> --query "proposal" --json | jq '.data[].hPath'