Skip to content

Commit

Permalink
Merge pull request #357 from Bhashinee/main
Browse files Browse the repository at this point in the history
Add a message describing the next steps after a successful `bal persist add` coammand exection
  • Loading branch information
Bhashinee committed Apr 15, 2024
2 parents c1a147b + d4ddbaf commit a683237
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ observabilityIncluded = false
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "persist.inmemory-native"
version = "1.2.0"
version = "1.3.0-SNAPSHOT"

5 changes: 5 additions & 0 deletions persist-cli/src/main/java/io/ballerina/persist/cmd/Add.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ public void execute() {
Paths.get(sourcePath, BALLERINA_TOML).toAbsolutePath().toString());
createPersistDirectoryIfNotExists();
createDefaultSchemaBalFile();
errStream.printf("Integrated the generation of persist client and entity types into the package " +
"build process." + System.lineSeparator());
errStream.println(System.lineSeparator() + "Next steps:");
errStream.println("1. Define your data model in \"persist/model.bal\".");
errStream.println("2. Execute `bal build` to generate the persist client during package build.");
} catch (BalException | IOException e) {
errStream.printf("ERROR: %s%n", e.getMessage());
}
Expand Down

0 comments on commit a683237

Please sign in to comment.