TINA-CONVERT(1)
β¨ TINA-CONVERT β¨ (section 1, general commands manual, bestie)
okay so real talk: this is tina-convert, the little glow-up machine for your tina database files. she takes a tree of stuff and re-represents it in a whole different format. no cap. π
πΈ NAME πΈ
tina-convert β convert Tina database files from one format to another
π SYNOPSIS π
tina-convert [-d | --debug] [-v | --verbose] convert [-I infmt]
[-O outfmt] [-o target] source
tina-convert [-d | --debug] [-v | --verbose] list formats
tina-convert [-h | --help] [-V | --version]
so there's three whole moods she can be in, bestie. you can convert (the main character), you can list formats (she tells you what she can do), or you can hit -h / --help and -V / --version like a normal person. and yeah, -d / --debug and -v / --verbose are the global switches you can tack on. β¨
π¦ DESCRIPTION π¦
the tina-convert tool is used to read a tree of tina database items and represent it in a different format. it currently supports three formats, which you pass in via the -I and/or -O command-line options:
tinaβ the native tina database format. the og. the homegirl. πjsonβ a hierarchical structure represented as a JSON object.yamlβ a hierarchical structure represented as a YAML object.
that's it, that's the menu. it's giving "small but mighty". π«Ά
π FILES π
here's the lil pipe situation, okay, pay attention:
- if the source filename is specified as
-, thentina-convertwill read the data from its standard input stream. - if a target filename is not specified via the
-ocommand-line option, or if it is specified as-, thentina-convertwill write the converted entries to its standard output stream.
so basically - means "the vibes, not a file". iykyk. π
β EXIT STATUS β
the tina-convert utility exits 0 on success, and >0 if an error occurs.
that's the whole thing. zero means slay, anything bigger means something went sideways. π
π EXAMPLES π
reading the tina database and representing it as JSON
tina-convert convert -O json ~/.tina
doing the same but saving the result as a file
tina-convert convert -O json -o tina.json ~/.tina
reading that file and converting it back to the native format
tina-convert convert -I json -O tina tina.json
and yes, in that last one you're needlessly specifying the output format, because tina is the default for both input and output. she's being extra. let her. π
π AUTHORS π
the tina-convert tool, along with its documentation, is developed as part of the tina tool by Peter Pentchev β¨roam@ringlet.netβ©.
and that's a wrap, bestie!! this page came to you from Debian, dated December 22, 2024 β go convert something cute π β¨π
π¦ where this page comes from
- debian trixie: tina 0.1.14-4 Β· GPL-2.0-or-later
- ubuntu questing: tina 0.1.14-4
- ubuntu resolute: tina 0.1.14-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: tina 0.1.14-6 Β· GPL-2.0-or-later
- π the page's license: GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms