cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 馃崈
charm leaflet readability golang
at main 85 lines 1.3 kB view raw view rendered
1--- 2title: Publishing Examples 3sidebar_label: Examples 4description: End-to-end examples for posting, drafting, and syncing. 5sidebar_position: 6 6--- 7 8# Publishing Examples 9 10## Publishing a Blog Post 11 12**Write the post locally**: 13 14```sh 15noteleaf note create "Understanding AT Protocol" --editor 16``` 17 18Write in markdown, save, and close editor. 19 20**Preview the conversion**: 21 22```sh 23noteleaf pub post <note-id> --preview 24``` 25 26Review the output to ensure formatting is correct. 27 28**Publish**: 29 30```sh 31noteleaf pub post <note-id> 32``` 33 34**Update later**: 35 36```sh 37noteleaf note edit <note-id> 38# Make changes 39noteleaf pub patch <note-id> 40``` 41 42## Draft Workflow 43 44**Create draft**: 45 46```sh 47noteleaf note create "Work in Progress" --editor 48noteleaf pub post <note-id> --draft 49``` 50 51**Iterate locally**: 52 53```sh 54noteleaf note edit <note-id> 55noteleaf pub patch <note-id> # Updates draft 56``` 57 58**Publish when ready**: Use leaflet.pub web interface to change draft to published status (CLI command coming in future versions). 59 60## Syncing Existing Content 61 62**Pull all leaflet documents**: 63 64```sh 65noteleaf pub pull 66``` 67 68**List synced documents**: 69 70```sh 71noteleaf pub list 72``` 73 74**Read a synced document**: 75 76```sh 77noteleaf pub read <note-id> 78``` 79 80**Edit locally and push updates**: 81 82```sh 83noteleaf note edit <note-id> 84noteleaf pub patch <note-id> 85```