on 02-13-2023 2:32 PM
Hi all,
i am trying to read the detailed space definitions from SAP DWC using the @sap/dwc-cli as Node.js module dependency.
Therefore i use the CLI parameter "--definitions" or "-D" with value "" (empty string) in order to get all definitions. But unfortunately this gets ignored.If i use this "--no-space-definition": "" it works like expected.
What do i have to pass for "-D" to get all definitions?
Coding looks like this, but there is nothing incorrect. It is only about the passing of the "--definitions" param.
const options = {"--host": "MYHOST"}
await commands["spaces read"]({...options,...{"--definitions", ""}})
Ok solved it by blind testing.
You have to set it like "--definitions": true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi lkaeser
when reading your question again I was asking myself if this is a typo?
await commands["spaces read"]({...options,...{"--definitions", ""}})
Can you try await commands["spaces read"]({...options,...{"--definitions": ""}})
"--definitions", "" vs "--definitions": ""
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jascha.kanngiesser,
I checked my git history but it wasn`t a typo.
I tried again using "" empty string but then I only receive the Space "config" but not the definitions.
For me it currently only works by setting it to true.
Offtopic Question:
Is there any roadmap to enable OAuth Client Credentials (two-legged). This would be a game change for machine2machine communication where no user context exists. E.g. scheduled jobs of a CICD pipeline. Currently it is only possible with the puppeteer workaround or by providing a long living access token from OAuth Authorization Code grant.
Best Regards,
Lukas
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.