Skip to content

Commit 87daef2

Browse files
authored
Merge pull request #42 from sourceplusplus/dev
Dev
2 parents e774179 + 2778426 commit 87daef2

File tree

5 files changed

+19
-43
lines changed

5 files changed

+19
-43
lines changed

README.md

+15-39
Original file line numberDiff line numberDiff line change
@@ -49,55 +49,31 @@ Options:
4949
-h, --help Show this message and exit
5050
5151
Commands:
52-
admin
53-
add-breakpoint
54-
add-log
55-
add-meter
56-
add-span
57-
get-breakpoints
58-
get-instruments
59-
get-logs
60-
get-meters
61-
get-spans
62-
remove-instrument
63-
remove-instruments
64-
clear-instruments
65-
subscribe-events Listens for and outputs live events. Subscribes to all events by default
66-
get-self
67-
version
52+
admin Administrator commands
53+
developer Developer commands
54+
add Add live instruments/views
55+
get Get live instruments/views
56+
remove Remove live instruments/views
57+
subscribe Subscribe to live instrument/view streams
58+
version Display version information
6859
```
6960

7061
To get information about a sub-command, try `spp-cli <command> --help`:
7162

7263
```
73-
Usage: spp-cli admin [OPTIONS] COMMAND [ARGS]...
64+
Usage: spp-cli add [OPTIONS] COMMAND [ARGS]...
65+
66+
Add live instruments/views
7467
7568
Options:
7669
-h, --help Show this message and exit
7770
7871
Commands:
79-
add-role
80-
get-developer-roles
81-
get-roles
82-
remove-role
83-
add-developer-role
84-
remove-developer-role
85-
add-role-permission
86-
get-developer-permissions
87-
get-role-permissions
88-
remove-role-permission
89-
add-developer
90-
get-developers
91-
remove-developer
92-
refresh-developer-token
93-
add-access-permission
94-
add-role-access-permission
95-
get-access-permissions
96-
get-developer-access-permissions
97-
get-role-access-permissions
98-
remove-access-permission
99-
remove-role-access-permission
100-
reset
72+
breakpoint Add a live breakpoint instrument
73+
log Add a live log instrument
74+
meter Add a live meter instrument
75+
span Add a live span instrument
76+
view Add a live view subscription
10177
```
10278

10379
# Documentation

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies {
3333
implementation("com.apollographql.apollo3:apollo-runtime:$apolloVersion")
3434
api("com.apollographql.apollo3:apollo-api:$apolloVersion")
3535

36-
implementation("com.github.sourceplusplus.protocol:protocol:2bd4bea9ad")
36+
implementation("com.github.sourceplusplus.protocol:protocol:$projectVersion")
3737

3838
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
3939
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlin.code.style=official
22

33
cliGroup=com.sourceplusplus
4-
projectVersion=0.4.1
4+
projectVersion=0.4.2
55

66
vertxVersion=4.2.4
77
graalVersion = 21.3.0

src/main/kotlin/spp/cli/commands/developer/view/AddView.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import spp.cli.protocol.view.adapter.AddLiveViewSubscriptionMutation_ResponseAda
3232
import spp.cli.util.JsonCleaner
3333
import kotlin.system.exitProcess
3434

35-
class AddView : CliktCommand(name = "view", help = "Add a live view") {
35+
class AddView : CliktCommand(name = "view", help = "Add a live view subscription") {
3636

3737
val entityIds by argument(name = "Entity IDs").multiple(required = true)
3838

src/main/kotlin/spp/cli/commands/developer/view/RemoveAllViews.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import spp.cli.PlatformCLI.echoError
2525
import spp.cli.protocol.view.ClearLiveViewSubscriptionsMutation
2626
import kotlin.system.exitProcess
2727

28-
class RemoveAllViews : CliktCommand(name = "all-views", help = "Remove all live views") {
28+
class RemoveAllViews : CliktCommand(name = "all-views", help = "Remove all live view subscriptions") {
2929

3030
override fun run() = runBlocking {
3131
val response = try {

0 commit comments

Comments
 (0)