This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
forked from LangStream/langstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c250fd3
commit 7f03f8d
Showing
7 changed files
with
125 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cli/src/main/java/com/datastax/oss/sga/cli/commands/DeleteCmd.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.datastax.oss.sga.cli.commands; | ||
|
||
import lombok.SneakyThrows; | ||
import picocli.CommandLine; | ||
|
||
@CommandLine.Command(name = "delete", | ||
description = "Delete an application") | ||
public class DeleteCmd extends BaseCmd { | ||
|
||
@CommandLine.Parameters(description = "Name of the application") | ||
private String name; | ||
|
||
@Override | ||
@SneakyThrows | ||
public void run() { | ||
http(newDelete("/applications/%s".formatted(name))); | ||
log("Application deleted"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cli/src/main/java/com/datastax/oss/sga/cli/commands/GetCmd.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.datastax.oss.sga.cli.commands; | ||
|
||
import lombok.SneakyThrows; | ||
import picocli.CommandLine; | ||
|
||
@CommandLine.Command(name = "get", | ||
description = "Get SGA application status") | ||
public class GetCmd extends BaseCmd { | ||
|
||
@CommandLine.Parameters(description = "Name of the application") | ||
private String name; | ||
|
||
@Override | ||
@SneakyThrows | ||
public void run() { | ||
final String body = http(newGet("/applications/%s".formatted(name))).body(); | ||
log(body); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters