Skip to content

Commit

Permalink
Added JavaScript language support
Browse files Browse the repository at this point in the history
  • Loading branch information
codemakerai-dev committed May 2, 2023
1 parent 4e52085 commit 037e78b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CodeMaker AI offers tools and automation for software developers for writing, te

Fallowing operations are supported:

* Context-aware source code generation.
* Generating unit tests.
* Migrating the programming language syntax.
* Generating source code documentation.
Expand All @@ -19,7 +20,10 @@ Fallowing operations are supported:

Following programming languages are supported:

* Java 17
* JavaScript
* Java

More language support is coming soon.

## Installation

Expand Down
4 changes: 3 additions & 1 deletion cli/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import "fmt"

var fileExtensions = map[string]string{
".java": "JAVA",
".js": "JAVASCRIPT",
}

var testFileSuffixes = map[string]string{
"JAVA": "Test.java",
"JAVA": "Test.java",
"JAVASCRIPT": "_test.js",
}

func languageFromExtension(extension string) (string, error) {
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ github.com/codemakerai/codemaker-sdk-go v0.0.4 h1:OboQVjrsJUWuRaI9UMESlWxxPJZJw+
github.com/codemakerai/codemaker-sdk-go v0.0.4/go.mod h1:drvi/xHywQnOgWWGw3dOWZ4CV0NesAdNNuAtsVdZW2E=
github.com/codemakerai/codemaker-sdk-go v0.0.5 h1:unxf4l1qn9Tgq7bKM90v86stYd80tF1/MhnaWyCobrs=
github.com/codemakerai/codemaker-sdk-go v0.0.5/go.mod h1:drvi/xHywQnOgWWGw3dOWZ4CV0NesAdNNuAtsVdZW2E=
github.com/codemakerai/codemaker-sdk-go v0.0.6 h1:b/DzAJ7qxbroYH9TzlYJGTaErbcg+3F0YpqhSP14R4Y=
github.com/codemakerai/codemaker-sdk-go v0.0.6/go.mod h1:drvi/xHywQnOgWWGw3dOWZ4CV0NesAdNNuAtsVdZW2E=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
Expand Down

0 comments on commit 037e78b

Please sign in to comment.