Skip to content

Commit

Permalink
Adds README.md for core library
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardorodriguezdev committed Dec 12, 2024
1 parent 78496cc commit ef4bfed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ For ease of use you should use both the [Gradle Plugin](gradle-plugin) and the [

The project is separated into 3 different projects:

- **core:** The actual code that makes the magic
- **core:** The actual code that makes the magic [Core library](core)
- **gradle-plugin:** Gradle plugin to use Chamaleon [Gradle Plugin](gradle-plugin)
- **intellij-plugin:** Intellij plugin to switch between the different environments [Intellij Plugin]()
18 changes: 18 additions & 0 deletions core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Chamaleon Core

Library that parses the `cha` files and returns the set of environments.
It's consumed by the [Gradle plugin](../gradle-plugin) and the [Intellij Plugin]()

## How it works?

Just create an EnvironmentsProcessor, and it will parse the directory provided and give you the environments if present

````kotlin
val file = File("MyDirectory")

val environmentsProcessor = EnvironmentsProcessor(file)

val environments = environmentsProcessor.environments()

val someEnvironment = environments.first()
````

0 comments on commit ef4bfed

Please sign in to comment.