fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#toml

0 posts0 participants0 posts today

Here my quick build of a bash toml parser based on kwmiebach's (github.com/kwmiebach) version on github. Thanks kwmiebach!
codeberg.org/oxo/tool/src/bran

The order of arguments (file, section key) is irrelevant. Data is aggregated if no key or section is given.

My idea is to integrate it with my paasword manager passr. Then my password files can be toml format.

Have a nice weekend!

kwmiebach has 109 repositories available. Follow their code on GitHub.
GitHubkwmiebach - Overviewkwmiebach has 109 repositories available. Follow their code on GitHub.
#linux#oxo#bash

#helix vs #neovim. spot the differences!

the main one isn't really visible, though: helix has a built-in #treesitter, and it does a great job at highlighting #rust out of the box, with zero configuration and dependencies!

this way, i don't have 20 plugins in #lua and/or #vimscript running in the background and autoupdating from #github - awesome! 🌈🦄 config is plain #toml - no need to write it in turing-complete languages which i only know poorly

shout out @bobulous 🙌 bobulous.org.uk/coding/Helix-c

Run pipelines in the terminal.

#pipelight is a cli/engine that runs pipelines in the terminal.(pssst: it's #foss 😏 and #rust 😏)

It has json AND pretty tree outputs so you can inspect every process outputs fairly quickly.🕵

Supports #yaml, #toml, #hcl, #javascript and some other languages.

#sysadmin #devops #cicd #developers
Every buzz word are there👌so you don't miss it, thk me later 😜

github.com/pipelight/pipelight

GitHubGitHub - pipelight/pipelight: Tiny automation pipelines. Bring CI/CD to the smallest projects. Self-hosted, Lightweight, CLI only.Tiny automation pipelines. Bring CI/CD to the smallest projects. Self-hosted, Lightweight, CLI only. - pipelight/pipelight

If you are into TOML, support for Scala 3 derivation was recently added to this library. I personally will stick with HOCON. By the way, does anyone use SConfig instead of the original Java implementation from TypeSafe? #scala #toml #hocon github.com/indoorvivants/toml-

GitHubGitHub - indoorvivants/toml-scala: TOML parser with codec derivation for the Scala platformTOML parser with codec derivation for the Scala platform - indoorvivants/toml-scala

Started a #Perl program to parse #TOML file, initially crudely. Then thought should use existing software in form of a module to extract more than the rudimentary data.

So far #FreeBSD (Perl) packages are only for TOML v.0.4.0; missing is "TOML::Tiny" metacpan.org/pod/TOML::Tiny to parse TOML v1.0.0.

OTOH, #Python "tomli" package is available to parse TOML v1.0.0. See also "tomllib"

I would rather switch programming languages to have system packages as the updates are easier

MetaCPANTOML::Tinya minimal, pure perl TOML parser and serializer
Replied in thread

@ifixcoinops

There is a flavour of JSON that supports comments (JSONC) but of course it's non-standard and not supported in most JSON contexts. And it exists solely because of some programs insisting on keeping their configurations in JSON format, and config files *always* need comments...

I wasn't originally in favour of the choice of TOML (DOS/Windows ".ini" syntax on steroids) for the Python project config/metadata file, thinking YAML would have been better, but I've come around. YAML is still primarily suited for programs to write and parse. The fact that programmers can also write and parse it is useful, but doesn't mean it's suited for use as a general configuration file format to be used by normal people.

At least TOML they have a (small) chance of finding not too frustrating.

I suppose you could look at TOML (or even plain .ini) syntax for your unrelated thing, depending on its requirements.

People: I've been doing TOML wrong!

Not this:

foo = { thing = "that goes off the side", of = "the screen", because = "you are not allowed line breaks", in = "inline tables"}

but this:

foo.thing = "that goes off the side"
foo.of = "the screen"
foo.because = "you are not allowed line breaks"
foo.in = "inline tables"

I thought I needed whole TOML docs to be allowed inside {} (and that would be nice!) but I didn't because I can do this instead.

@mgorny Three of those are by me, sorry you think it look like shit. (I have since reverted some to be more concise: github.com/termcolor/termcolor)

I also prefer the original, but #TOML isn't the prettiest and it's much more valuable and maintainable for me to have things consistent and autoformatted than to re-arrange by hand.

Have you tried making suggestions with the formatter? Do you know another formatter that I could use that is better? Is there a #PEP517 / #PyProjectToml style guide?

GitHubDrop support for Python 3.8 (#81) · termcolor/termcolor@09ca9ccANSI color formatting for output in terminal. Contribute to termcolor/termcolor development by creating an account on GitHub.

Kiedy przypadkowe projekty używające narzędzia do formatowania plików #PyProjectToml, od pewnej osoby z opiniami, i nagle pliki `pyproject.toml` tych wszystkich projektów zaczynają wyglądać, jakby ktoś je wysrał, bo rzeczona osoba zmieniła zdanie, i stwierdziła, że klucze z kropkami dla tabelek #TOML nie są fajne, i lepiej wszystkie wartości w upchnąć w nadrzędnych tabelach. Czy muszę dodawać, że to zupełnie inaczej, niż stosuje się w przykładach dla każdego jednego systemu budowania #PEP517?

Kilka przykładów projektów, w których to nastąpiło (często za sprawą pre-commit):

github.com/pypa/virtualenv/com
github.com/django-commons/djan
github.com/pytest-dev/pytest/c
github.com/prettytable/prettyt
github.com/python-humanize/hum
github.com/termcolor/termcolor

GitHub[pre-commit.ci] pre-commit autoupdate (#2723) · pypa/virtualenv@7cbed79Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
GitHub[pre-commit.ci] pre-commit autoupdate (#2723) · pypa/virtualenv@7cbed79Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>