Skip to content

Add indented Links Notation format support to lino-objects-codec #17

@konard

Description

@konard

Summary

The lino-objects-codec library should support an indented Links Notation format for output, in addition to the current parentheses-based format.

Requested Format

The library should support formatting objects in an indented style like:

6dcf4c1b-ff3f-482c-95ab-711ea7d1b019
  uuid "6dcf4c1b-ff3f-482c-95ab-711ea7d1b019"
  status "executed"
  command "echo test"
  exitCode "0"

Where the first line is the object identifier (UUID), and subsequent lines are indented properties in the format:

  <key> "<value>"

Current Format

Currently, the library only supports the parentheses-based format:

(type value)
(object (str key) (str value))

Use Case

This indented format is requested for displaying execution status in a more human-readable way while maintaining the Links Notation style.

Reference

Related to PR link-foundation/start#47 - Add --status --output-format support


Filed from PR link-foundation/start#47 per user feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions