New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(cli): improvements for cli help #3060
base: master
Are you sure you want to change the base?
Conversation
cli/command_snapshot_create.go
Outdated
A snapshots is a point in time backup of the given <path>. Snapshots are organized by source. | ||
Each user@host:/path is considered a unique source, and can have policies applied to them. | ||
|
||
Example: $ kopia snapshot create /home/user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you try adding markdown around code smaples (triple backtick):
$ kopia snapshot create /home/user
This would still look decent in --help
but will result in nicely formatted website help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I've found I can do something like
`Example:
` + "```" + `
$ kopia snapshot list
` + "```" + `
Continuing....`
And I get this output on the cli
``` $ kopia snapshot list ```
Would using a single backtick work for one liners? I think that would be a good compromise
2c5fd69
to
5bf41a7
Compare
site/content/docs/_index.md
Outdated
@@ -5,7 +5,7 @@ linkTitle: "What is Kopia?" | |||
weight: 20 | |||
--- | |||
|
|||
Kopia is a fast and secure open-source backup/restore tool that allows you to create [encrypted](features/#end-to-end-zero-knowledge-encryption) snapshots of your data and save the snapshots to [remote or cloud storage](features/#save-snapshots-to-cloud-network-or-local-storage) of your choice, [to network-attached storage or server](features/#save-snapshots-to-cloud-network-or-local-storage), or [locally on your machine](features/#save-snapshots-to-cloud-network-or-local-storage). Kopia does not 'image' your whole machine. Rather, Kopia allows you to backup/restore any and all files/directories that you deem are important or critical. | |||
Kopia is a fast and secure open-source backup/restore tool that allows you to create [encrypted](features/#end-to-end-zero-knowledge-encryption) snapshots of your data and save the snapshots to [remote or cloud storage](features/#save-snapshots-to-cloud-network-or-local-storage) of your choice, [to network-attached storage or server](features/#save-snapshots-to-cloud-network-or-local-storage), or [locally on your machine](features/#save-snapshots-to-cloud-network-or-local-storage). Kopia does not 'image' your whole machine. Rather, Kopia allows you to backup/restore any and all files/directories that you deem are important or critical. Kopia is written in Go and runs on Windows 10/11 MacOS and Linux with no extra dependencies required, it is a fully self contained binary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run fine on BSD too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add BSD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the textual improvements. If the syntax of all the + "''''" + .. are working or at least slightly better than before, I still think this should go in.
…te * snapshot verify * snapshot fix invalid-files * snapshot migrate * ls * restore * added backticks into output to increase web readability for code blocks updates for website * Created page for policy to detail how policies can be used * a few words about kopia being written in Go
new help for repository sync-to
I've been doing some improvements to the built in --help in a few of the cli snapshot commands. I used the style from the restore command as a guide. Would love some feedback about if this is useful and detailed enough and just general readability.