docs: Make this format a little prettier-friendly.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
2025-06-18 19:08:47 -04:00
parent 620db19936
commit e9e22b762d
2 changed files with 38 additions and 4 deletions

View File

@ -1485,14 +1485,14 @@ help: ## Display this help message.
docs: debug docs: debug
docs: ## Build HTML docs. docs: ## Build HTML docs.
@echo '# CLI Usage' > docs/usage.md @echo '# CLI Usage\n' > docs/usage.md
@echo "## tildefriends -h" >> docs/usage.md @echo "## tildefriends -h" >> docs/usage.md
@echo '```' >> docs/usage.md @echo '\n```' >> docs/usage.md
@out/debug/tildefriends -h >> docs/usage.md @out/debug/tildefriends -h >> docs/usage.md
@echo '```' >> docs/usage.md @echo '```' >> docs/usage.md
@for command in $$(out/debug/tildefriends -h | grep -Po '[A-Za-z_]*(?= - )'); do @for command in $$(out/debug/tildefriends -h | grep -Po '[A-Za-z_]*(?= - )'); do
@ echo "## tildefriends $$command -h" >> docs/usage.md @ echo "\n## tildefriends $$command -h" >> docs/usage.md
@ echo '```' >> docs/usage.md @ echo '\n```' >> docs/usage.md
@ out/debug/tildefriends $$command -h >> docs/usage.md @ out/debug/tildefriends $$command -h >> docs/usage.md
@ echo '```' >> docs/usage.md @ echo '```' >> docs/usage.md
@done @done

View File

@ -1,5 +1,7 @@
# CLI Usage # CLI Usage
## tildefriends -h ## tildefriends -h
``` ```
Usage: out/debug/tildefriends command [command-options] Usage: out/debug/tildefriends command [command-options]
commands: commands:
@ -20,7 +22,9 @@ commands:
verify - Verify a feed. verify - Verify a feed.
test - Test SSB. test - Test SSB.
``` ```
## tildefriends run -h ## tildefriends run -h
``` ```
out/debug/tildefriends run [options] out/debug/tildefriends run [options]
@ -60,7 +64,9 @@ options
-v, --verbose Log raw messages. -v, --verbose Log raw messages.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends sandbox -h ## tildefriends sandbox -h
``` ```
Usage: out/debug/tildefriends sandbox [options] Usage: out/debug/tildefriends sandbox [options]
@ -69,7 +75,9 @@ options:
-h, --help Show this usage information. -h, --help Show this usage information.
-f, --fd File descriptor with which to communicate with parent process. -f, --fd File descriptor with which to communicate with parent process.
``` ```
## tildefriends import -h ## tildefriends import -h
``` ```
out/debug/tildefriends import [options] [paths...] out/debug/tildefriends import [options] [paths...]
@ -79,7 +87,9 @@ options:
-d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite). -d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite).
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends export -h ## tildefriends export -h
``` ```
out/debug/tildefriends export [options] [paths...] out/debug/tildefriends export [options] [paths...]
@ -91,7 +101,9 @@ options:
paths Paths of apps to export (example: /~core/ssb /~user/app). paths Paths of apps to export (example: /~core/ssb /~user/app).
``` ```
## tildefriends publish -h ## tildefriends publish -h
``` ```
out/debug/tildefriends publish [options] out/debug/tildefriends publish [options]
@ -103,7 +115,9 @@ options:
-c, --content json JSON content of message to publish. -c, --content json JSON content of message to publish.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends private -h ## tildefriends private -h
``` ```
out/debug/tildefriends private [options] out/debug/tildefriends private [options]
@ -116,7 +130,9 @@ options:
-t, --text text Private post text. -t, --text text Private post text.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends create_invite -h ## tildefriends create_invite -h
``` ```
out/debug/tildefriends get_sequence [options] out/debug/tildefriends get_sequence [options]
@ -130,7 +146,9 @@ options:
-e, --expires seconds How long this invite is valid in seconds (-1 for indefinitely, default: 1 hour). -e, --expires seconds How long this invite is valid in seconds (-1 for indefinitely, default: 1 hour).
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends get_sequence -h ## tildefriends get_sequence -h
``` ```
out/debug/tildefriends get_sequence [options] out/debug/tildefriends get_sequence [options]
@ -140,7 +158,9 @@ options:
-i, --identity identity Account from which to get latest sequence number. -i, --identity identity Account from which to get latest sequence number.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends get_identity -h ## tildefriends get_identity -h
``` ```
out/debug/tildefriends get_identity [options] out/debug/tildefriends get_identity [options]
@ -149,7 +169,9 @@ options:
-d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite). -d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite).
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends get_profile -h ## tildefriends get_profile -h
``` ```
out/debug/tildefriends get_profile [options] out/debug/tildefriends get_profile [options]
@ -159,7 +181,9 @@ options:
-i, --identity identity Account for which to get profile information. -i, --identity identity Account for which to get profile information.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends get_contacts -h ## tildefriends get_contacts -h
``` ```
out/debug/tildefriends get_contacts [options] out/debug/tildefriends get_contacts [options]
@ -169,7 +193,9 @@ options:
-i, --identity identity Account from which to get contact information. -i, --identity identity Account from which to get contact information.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends has_blob -h ## tildefriends has_blob -h
``` ```
out/debug/tildefriends has_blob [options] out/debug/tildefriends has_blob [options]
@ -179,7 +205,9 @@ options:
-b, --blob_id blob_id ID of blob to query. -b, --blob_id blob_id ID of blob to query.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends get_blob -h ## tildefriends get_blob -h
``` ```
out/debug/tildefriends store_blob [options] out/debug/tildefriends store_blob [options]
@ -190,7 +218,9 @@ options:
-o, --output file_path Location to write the retrieved blob. -o, --output file_path Location to write the retrieved blob.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends store_blob -h ## tildefriends store_blob -h
``` ```
out/debug/tildefriends store_blob [options] out/debug/tildefriends store_blob [options]
@ -200,7 +230,9 @@ options:
-f, --file file_path Path to file to add to the blob store. -f, --file file_path Path to file to add to the blob store.
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends verify -h ## tildefriends verify -h
``` ```
out/debug/tildefriends import [options] [paths...] out/debug/tildefriends import [options] [paths...]
@ -211,7 +243,9 @@ options:
-d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite). -d, --db-path db_path SQLite database path (default: /home/cory/.local/share/tildefriends/db.sqlite).
-h, --help Show this usage information. -h, --help Show this usage information.
``` ```
## tildefriends test -h ## tildefriends test -h
``` ```
out/debug/tildefriends test [options] out/debug/tildefriends test [options]