Skip to content

Commit

Permalink
Add docs on dump format
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jun 27, 2024
1 parent bd52030 commit fcdb188
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli/command-reference.golden
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,14 @@ Options:

---

Dump the contents of the database for analysis
Dump the contents of the database for analysis.

The JSON format is as follows:
{
"id": int64,
"kind": "Human" | "Bytes",
"data": (UTF-8 | base64) string
}

Usage: clipboard-history debug dump [OPTIONS]

Expand Down
7 changes: 7 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ enum Dev {
Stats,

/// Dump the contents of the database for analysis.
///
/// The JSON format is as follows:{n}
/// {{n}
/// "id": int64,{n}
/// "kind": "Human" | "Bytes",{n}
/// "data": (UTF-8 | base64) string{n}
/// }{n}
#[command(alias = "export")]
Dump(Dump),

Expand Down

0 comments on commit fcdb188

Please sign in to comment.