cad-groupProps(1)

Michael Slinn (mslinn@micronauticsresearch.com)

10 May 2019

NAME

cad groupProps - a Cadenza Client™ command that reports property values for a given group.

SYNOPSIS

cad [OPTION]… groupProps propertyName id cad [OPTION]… groupProps -s id cad [OPTION]… groupProps -h

propertyName might be retrieved verbatim from group.json, or might be a computed value.

DESCRIPTION

cad groupProps returns a group’s properties object. The properties object for a group is stored in a file called group.json within the group’s directory within $cadenzaCurriculum.

References properties object for all properties, and enhances with environment variables to fill out complete paths for:

absoluteCreativeProjectPath
Computed from creativeProjectPath in group.json, relative to $cadenzaCreative.
absoluteCurriculumProject
Computed from curriculumProjectPath in group.json, relative to $cadenzaCurriculum.
absoluteDWPath
Computed from dwPath in group.json, relative to $cadenzaCurriculum.
absolutePromoDWSte
Computed from promoDWPath in group.json, relative to $cadenzaCurriculum.
absolutePropertyObjectPath
Computed from propertyObjectPath in group.json, relative to $cadenzaCurriculum.

ACTION_OPTIONS

-h
Shows this man page.
-s
(Re)compute and save the property object in the appropriate directory within $cadenzaCurriculum. Increments the version property value. Returns the empty string.

EXAMPLES

cad groupProps -h
Shows this man page.
cad groupProps -s 13
Persists the properties object for group #13.
cad groupProps .creativeProjectPath 103
This jq query returns something like: group_ScalaCore
cad groupProps absoluteCreativeProjectPath 103
This computed property returns something like: /mnt/c/work/cadenzaHome/cadenzaCreative/ScalaCourses.com/group_ScalaCore
cad groupProps .cadenzaCurriculum 103
This jq query returns something like: group_ScalaCore
cad groupProps absoluteCurriculumProject 103
This computed property returns something like: /mnt/c/work/cadenzaHome/cadenzaCurriculum/ScalaCourses.com/group_ScalaCore
cad groupProps .promoPath 40
This jq query returns something like: ScalaCourses.com/group_ScalaCore/promo
cad groupProps absolutePromoPath 40
This computed property returns something like: /mnt/c/work/cadenzaHome/cadenzaCurriculum/ScalaCourses.com/group_ScalaCore/promo
cad groupProps .promoDWSte 40
This jq query returns something like: ScalaCourses.com/group_ScalaCore/promo/group_ScalaCore.ste
cad groupProps absolutePromoDWSte 40
This computed property returns something like: /mnt/c/work/cadenzaHome/cadenzaCurriculum/ScalaCourses.com/group_ScalaCore/promo/group_ScalaCore.ste
cad groupProps .propertyObjectPath 103
This jq query returns something like: group_ScalaCore/group.json
cad groupProps absolutePropertyObjectPath 103
This computed property returns something like: /mnt/c/work/cadenzaHome/cadenzaCurriculum/ScalaCourses.com/group_ScalaCore/group.json
cad groupProps '.lecture|.sku' 103
This jq query returns something like: course_scalaIntro
cad groupProps ‘.video|.renderedPath’ 13
This jq query returns something like: 1/html/ScalaCore/assets/videos/group_ScalaCore.mp4

SAMPLE group.json

{
  "creative": {
    "downloadedFrom": "production",
    "lastDownloaded": "12345"
    "lastUploaded": [
      {
        "to": "production",
        "on": null
      },
      {
        "to": "localhost",
        "on": null
      }
    ],
    "version": "1"
  },
  "gitCreated": "12345",
  "indexLastModified": "12345",
  "jsonCreated": "12345",
  "jsonVersion": "3",
  "creativeProjectPath": "ScalaCourses.com/group_ScalaCore",
  "curriculumProjectPath": "ScalaCourses.com/group_ScalaCore",
  "dwPath": "ScalaCourses.com/group_ScalaCore/promo",
  "dwSte": "ScalaCourses.com/group_ScalaCore/promo/group_ScalaCore.ste",
  "propertyObjectPath": "ScalaCourses.com/group_ScalaCore/group.json",
  "site": {
    "id": 1,
    "name": "ScalaCourses.com"
  },
  "group": {
    "id": 103,
    "sku": "group_ScalaCore",
    "title": "Core Scala"
  },
  "video": {
    "renderedUrl": "https://courseassets.scalacourses.com/1/html/ScalaCore/assets/videos/group_ScalaCore.mp4",
    "transcodedUrl": "https://courseassets.scalacourses.com/1/html/ScalaCore/assets/videos/tx/group_ScalaCore_Web.mp4",
    "stageDomain": "courseassets.scalacourses.com",
    "renderedPath": "1/html/ScalaCore/assets/videos/group_ScalaCore.mp4",
    "transcodedPath": "1/html/ScalaCore/assets/videos/tx/group_ScalaCore_Web.mp4"
  }
}

SEE ALSO

cad group(1), cad(1)