Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

NickIAm
Copy link
Contributor

@NickIAm NickIAm commented Jun 9, 2023

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.

@NickIAm NickIAm changed the title (docs): Improve help for cli snapshot commands (docs): Improve --help for cli commands Jun 9, 2023
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
Copy link
Contributor

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.

Copy link
Contributor Author

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

@NickIAm NickIAm changed the title (docs): Improve --help for cli commands docs: improvements for cli command help Jun 14, 2023
@NickIAm NickIAm force-pushed the doc_improve branch 2 times, most recently from 2c5fd69 to 5bf41a7 Compare June 16, 2023 09:42
@NickIAm NickIAm changed the title docs: improvements for cli command help docs(cli): improvements for cli help Jul 10, 2023
@NickIAm NickIAm marked this pull request as ready for review July 14, 2023 23:02
@@ -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.
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add BSD

Copy link
Contributor

@icepic icepic left a 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants