Skip to content

[2pt] feedback: Module yaml | Tarantool #1787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
TarantoolBot opened this issue Jan 29, 2021 · 1 comment
Closed
1 task

[2pt] feedback: Module yaml | Tarantool #1787

TarantoolBot opened this issue Jan 29, 2021 · 1 comment
Assignees
Labels
design [nature] Design issue reference [location] Tarantool manual, Reference part

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Jan 29, 2021

root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/yaml/
SME: @rosik

<…>rialize="sequence"}))tarantool> yaml = require('yaml')
---
...

tarantool> yaml.encode(setmetatable({'A', 'B'}, { __serialize="sequence"}))
---
- '---

  - A

  - B

  ...

  '
...

tarantool> yaml.encode<…>

I suggest changing this example because yaml inside yaml looks awful

tarantool> print(yaml.encode(setmetatable({'A', 'B'}, { __serialize="sequence"})))
---
- A
- B
...

---
...

There may be other options, e.g. \set output lua (see https://www.tarantool.io/en/doc/latest/reference/interactive_console/#interactive-console-output)

DoD

  • prettify the whole code-block
@Onvember Onvember added design [nature] Design issue reference [location] Tarantool manual, Reference part S (small) labels Jan 29, 2021
@Onvember Onvember added this to the Doc issues estimate aggregation [@onvember] milestone Apr 20, 2021
@Onvember Onvember changed the title feedback: Module yaml | Tarantool [2pt] feedback: Module yaml | Tarantool Apr 21, 2021
@Onvember Onvember removed this from the Doc issues estimate aggregation [@onvember] milestone Apr 27, 2021
@rosik
Copy link
Contributor

rosik commented Aug 13, 2021

Related to tarantool/tarantool#6304

@veod32 veod32 removed the 2sp label May 23, 2023
@p7nov p7nov self-assigned this Jul 10, 2023
@p7nov p7nov mentioned this issue Jul 10, 2023
p7nov added a commit that referenced this issue Jul 10, 2023
@p7nov p7nov closed this as completed Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design [nature] Design issue reference [location] Tarantool manual, Reference part
Projects
None yet
Development

No branches or pull requests

6 participants