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: add examples of the 'crowdin string add' command usage #616

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions website/mantemplates/crowdin-string-add.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,23 @@ include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-commands]
include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-options]

include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer]

=== Examples

Add a new string with the `app.home` key to the `src/values/strings.xml` file:

----
crowdin string add Home --file src/values/strings.xml --identifier "app.home"
----

Add a new string with the `app.download` key to the `src/values/strings.xml` file (branch `main`):

----
crowdin string add Download --file main/src/values/strings.xml --identifier "app.download"
----

Add a new string with the `app.hello` key to the `strings.xml` file, with labels `app` and `home`:

----
crowdin string add "Hello world" --file strings.xml --identifier "app.hello" --label app --label home
----