Skip to content

Commit 999e18f

Browse files
committed
remove unsupported options
1 parent cfd90ba commit 999e18f

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

cli/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ def process_fortran_library(
713713
@click.option("--top-rust-crates", is_flag=True, help="Add the top 100 Rust crates")
714714
@click.option(
715715
"--lang",
716-
type=click.Choice(["c", "c++", "rust", "fortran", "java", "kotlin"], case_sensitive=False),
716+
type=click.Choice(["c", "c++", "rust", "fortran"], case_sensitive=False),
717717
help="Language for the library",
718718
)
719719
@click.option("--lib", help="Library name (for Rust) or GitHub URL (for other languages)")
@@ -764,8 +764,6 @@ def main(
764764
"c++": Language.CPP,
765765
"rust": Language.RUST,
766766
"fortran": Language.FORTRAN,
767-
"java": Language.JAVA,
768-
"kotlin": Language.KOTLIN,
769767
}
770768

771769
language = lang_map[lang.lower()]

core/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class Language(str, Enum):
1010
CPP = "C++"
1111
RUST = "Rust"
1212
FORTRAN = "Fortran"
13-
JAVA = "Java"
14-
KOTLIN = "Kotlin"
1513

1614

1715
class BuildTool(str, Enum):

docs/contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ To add support for a new language:
126126

127127
1. **Create a handler class** in `core/{language}_handler.py`:
128128
```python
129-
class JavaHandler:
129+
class NewLanguageHandler:
130130
def __init__(self, infra_path: Path, main_path: Path, debug: bool = False):
131131
self.infra_path = infra_path
132132
self.main_path = main_path
@@ -141,7 +141,7 @@ To add support for a new language:
141141
```python
142142
class Language(str, Enum):
143143
# ... existing languages ...
144-
JAVA = "java"
144+
NEW_LANGUAGE = "New Language"
145145
```
146146

147147
3. **Add CLI support** in `cli/main.py`:

0 commit comments

Comments
 (0)