Skip to content

Commit 2c09395

Browse files
committed
moving cli
1 parent fc5ab8e commit 2c09395

File tree

93 files changed

+2
-10953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2
-10953
lines changed

astra-sdk/src/main/java/com/datastax/astra/sdk/utils/AstraRc.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private void parseConfigFile() {
263263
// Starting a new section
264264
sectionName = line.replaceAll("\\[", "").replaceAll("\\]", "").trim();
265265
sections.put(sectionName, new HashMap<>());
266-
} else if (!line.startsWith("#") && !"".equals(line)) {
266+
} else if (!line.isEmpty() && !line.startsWith("#") && !"".equals(line)) {
267267
int off = line.indexOf("=");
268268
if (off < 0) {
269269
throw new IllegalArgumentException(
@@ -304,6 +304,7 @@ public String renderSections() {
304304
public String renderSection(String sectionName) {
305305
StringBuilder sb = new StringBuilder();
306306
if (sectionName!= null && sections.containsKey(sectionName)) {
307+
sb.append(LINE_SEPARATOR + "[" + sectionName + "]" + LINE_SEPARATOR);
307308
sections.get(sectionName).entrySet().forEach(line -> {
308309
sb.append(line.getKey() + "=" + line.getValue() + LINE_SEPARATOR);
309310
});

astra-shell/NOTES.MD

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)