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

feat: completion script #779

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.crowdin.cli.commands.picocli;

import picocli.AutoComplete;
import picocli.CommandLine;

@CommandLine.Command(name = "completion", hidden = true)
class CompletionSubCommand extends AutoComplete.GenerateCompletion {
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
FileSubcommand.class,
LanguageSubcommand.class,
ConfigSubcommand.class,
ProjectSubcommand.class
ProjectSubcommand.class,
CompletionSubCommand.class
})
class RootCommand extends HelpCommand {
@Override
Expand Down
6 changes: 6 additions & 0 deletions website/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ For [DEB](/installation#debian), [RPM](/installation#rpm), and [ArchLinux](/inst

:::

However, Crowdin CLI also comes with built-in subcommand to generate completion script for you:

```bash
crowdin completion
```

## Requirements

Check that you have Java 8 or newer installed. Type `java -version` command in the terminal (Command Prompt on Windows) to check Java version. For example, java version "1.8.0_212" means that you have Java 8 Update 212 installed.
Expand Down
Loading