dcloud git files highlighted

One file as lines with syntax highlighting

IAM git:PullRepositoryRead

`lines` is the text split into lines; `html` one highlighted HTML fragment per line (both themes as CSS variables), or null when the file is over 512 KiB or has no known language.

Synopsis

dcloud git files highlighted repoId --path path [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --refOptional

    string

    Branch, tag or commit id; the default branch when absent

    Constraints: 1-255 chars

  • --pathRequired

    string

    The file's path from the repository root, e.g. src/index.ts

    Constraints: 1-1000 chars

Example

dcloud git files highlighted repoId --path example

Generated from the API description, the same one the API checks requests against and the CLI is built from.