Skip to content

feat: xs.nu: coerce rich data types to, likely, JSON. .cas should return the original data structure #49

Description

@cablehead
~/s/03d..pnc/nu-call $ ls | .append
~/s/03d..pnc/nu-call $ ls
╭─#─┬────name────┬─type─┬──size──┬───modified────╮
│ 0 │ README.md  │ file │   41 B │ 2 minutes ago │
│ 1 │ nu-call.nu │ file │ 4.3 kB │ 6 minutes ago │
╰───┴────────────┴──────┴────────┴───────────────╯
~/s/03d..pnc/nu-call $ ls | .append capture
╭────────────┬─────────────────────────────────────────────────────╮
│ topic      │ capture                                             │
│ context_id │ 03dgaaf6wlpexgvercv4chg1u                           │
│ id         │ 03dgaefk90rigl5dcwsuohnjm                           │
│ hash       │ sha256-4NDLmD61g/gEJlKmuYd4d5k1WUUlsRxa1qv6dFMDqGk= │
│ meta       │                                                     │
│ ttl        │ forever                                             │
╰────────────┴─────────────────────────────────────────────────────╯
~/s/03d..pnc/nu-call $ .cat | last | .cas
╭─#─┬────name────┬─type─┬──size──┬───modified────╮
│ 0 │ README.md  │ file │   41 B │ 2 minutes ago │
│ 1 │ nu-call.nu │ file │ 4.3 kB │ 6 minutes ago │
╰───┴────────────┴──────┴────────┴───────────────╯
~/s/03d..pnc/nu-call $ .cat | last | .cas | describe
byte stream
~/s/03d..pnc/nu-call $

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions