Skip to content

Commit

Permalink
feat: completion script (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed May 7, 2024
1 parent 60f870c commit f873704
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit f873704

Please sign in to comment.