You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2021/05/06 11:30:53 UTC
[sling-whiteboard] branch master updated: Add help field to commands
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new c42f038 Add help field to commands
c42f038 is described below
commit c42f038f3f53981c9538fdac8e26fec5564e2e71
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Thu May 6 13:30:39 2021 +0200
Add help field to commands
---
.../org/apache/sling/remotecontentapi/graphql/CommandDataFetcher.java | 2 ++
.../SLING-INF/initial-content/apps/samples/graphql/GQLschema.jsp | 1 +
2 files changed, 3 insertions(+)
diff --git a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontentapi/graphql/CommandDataFetcher.java b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontentapi/graphql/CommandDataFetcher.java
index 4c37016..3aa7655 100644
--- a/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontentapi/graphql/CommandDataFetcher.java
+++ b/remote-content-api/sample-graphql-api/src/main/java/org/apache/sling/remotecontentapi/graphql/CommandDataFetcher.java
@@ -64,6 +64,8 @@ public class CommandDataFetcher implements SlingDataFetcher<Object> {
result.put("success", false);
result.put("output", ex.toString());
}
+
+ result.put("help", "See https://sling.apache.org/documentation/bundles/repository-initialization.html for information about the repoinit language");
return result;
diff --git a/remote-content-api/sample-graphql-api/src/main/resources/SLING-INF/initial-content/apps/samples/graphql/GQLschema.jsp b/remote-content-api/sample-graphql-api/src/main/resources/SLING-INF/initial-content/apps/samples/graphql/GQLschema.jsp
index 7539aa4..425ff57 100644
--- a/remote-content-api/sample-graphql-api/src/main/resources/SLING-INF/initial-content/apps/samples/graphql/GQLschema.jsp
+++ b/remote-content-api/sample-graphql-api/src/main/resources/SLING-INF/initial-content/apps/samples/graphql/GQLschema.jsp
@@ -33,6 +33,7 @@ type Mutation {
type CommandResult {
success: Boolean
output: String
+ help: String
links: [Link]
}