Skip to main content

CDS (SAP CAP)

Whatโ€‹

Display the active CDS CLI version.

Sample Configurationโ€‹

{
"background": "#a7cae1",
"foreground": "#100e23",
"powerline_symbol": "๎‚ฐ",
"template": " ๎Œ‘ cds {{ .Full }} ",
"style": "powerline",
"type": "cds"
}

Propertiesโ€‹

NameTypeDescription
home_enabledbooleandisplay the segment in the HOME folder or not - defaults to false
fetch_versionbooleanfetch the CDS version - defaults to true
missing_command_textstringtext to display when the cds command is missing - defaults to empty
display_modestring
  • always: the segment is always displayed
  • files: the segment is displayed when .cdsrc.json, .cdsrc-private or *.cds file is present
  • context: the segment is displayed when conditions from files mode are fulfilled or package.json file is present and @sap/cds is in dependencies section (default)
extensions[]stringallows to override the default list of file extensions to validate
folders[]stringallows to override the list of folder names to validate
cache_versionbooleancache the executable's version or not - defaults to false

Template (info)โ€‹

default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.Fullstringthe full version
.Majorstringmajor number
.Minorstringminor number
.Patchstringpatch number
.Errorstringerror encountered when fetching the version string
.HasDependencyboola flag if @sap/cds was found in package.json