Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-05-21 Thread Guilherme Puida Moreira
On Tue, May 21, 2024 at 06:13:21PM +0200, Andrej Shadura wrote:
> In fact, having checked the source code, it’s one way only, and after
> all it’s also someone else’s quick hack. Maybe someone should write
> a robust tool to support all formats and directions and package *that*
> for Debian? :)

I think dasel might be what you want :^)

Select, put and delete data from JSON, TOML, YAML, XML and CSV files
with a single tool. Supports conversion between formats and can be used
as a Go package.

https://github.com/tomwright/dasel
https://tracker.debian.org/pkg/dasel

--puida



Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-05-21 Thread Andrej Shadura
Hi again,

On Tue, 21 May 2024, at 17:59, Andrej Shadura wrote:
> On Tue, 21 May 2024, at 17:17, Facundo Gaich wrote:
>> Well I ended packaging this, it's waiting in debcargo-conf at
>> https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/653
> 
> If the Rust impl of toml2json works better than one written in Python 
> (reserialize), I’m more than happy that you take over the binary package. I’m 
> almost certain it does, given that the Python package is basically someone’s 
> script I packaged and patched over and over again.

In fact, having checked the source code, it’s one way only, and after all it’s 
also someone else’s quick hack. Maybe someone should write a robust tool to 
support all formats and directions and package *that* for Debian? :)

-- 
Cheers,
  Andrej


Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-05-21 Thread Andrej Shadura
Hi,

On Tue, 21 May 2024, at 17:17, Facundo Gaich wrote:
> On Thu, Feb 22, 2024 at 1:39 PM Jonas Smedegaard  wrote:
>> Quoting Facundo Gaich (2024-02-22 17:12:22)
>> > I can work on packaging this if you're still interested, I'd need a 
>> > sponsor.
>> > 
>> > I've already done some preliminary work on this, in particular I renamed
>> > the bin to "rust-toml2json" but maybe you've got a better idea?
>> 
>> If the command-line tool does somewhat the same as the existing one, I
>> suggest to rename it with the deviating part as the end instead, so that
>> users TAB-completing would easier notice the alternative:
>> toml2json-rust. 
> 
> Well I ended packaging this, it's waiting in debcargo-conf at
> https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/653

If the Rust impl of toml2json works better than one written in Python 
(reserialize), I’m more than happy that you take over the binary package. I’m 
almost certain it does, given that the Python package is basically someone’s 
script I packaged and patched over and over again.

-- 
Cheers,
  Andrej


Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-05-21 Thread Facundo Gaich
Control: retitle -1 ITP: rust-toml2json -- A very small CLI for converting
TOML to JSON
Control: owner -1 !

Well I ended packaging this, it's waiting in debcargo-conf at
https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/653

Best,
Facundo

On Thu, Feb 22, 2024 at 1:39 PM Jonas Smedegaard  wrote:

> Quoting Facundo Gaich (2024-02-22 17:12:22)
> > I can work on packaging this if you're still interested, I'd need a
> sponsor.
> >
> > I've already done some preliminary work on this, in particular I renamed
> > the bin to "rust-toml2json" but maybe you've got a better idea?
>
> If the command-line tool does somewhat the same as the existing one, I
> suggest to rename it with the deviating part as the end instead, so that
> users TAB-completing would easier notice the alternative:
> toml2json-rust.
>
>  - Jonas
>
> --
>  * Jonas Smedegaard - idealist & Internet-arkitekt
>  * Tlf.: +45 40843136  Website: http://dr.jones.dk/
>  * Sponsorship: https://ko-fi.com/drjones
>
>  [x] quote me freely  [ ] ask before reusing  [ ] keep private


Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-02-22 Thread Jonas Smedegaard
Quoting Facundo Gaich (2024-02-22 17:12:22)
> I can work on packaging this if you're still interested, I'd need a sponsor.
> 
> I've already done some preliminary work on this, in particular I renamed
> the bin to "rust-toml2json" but maybe you've got a better idea?

If the command-line tool does somewhat the same as the existing one, I
suggest to rename it with the deviating part as the end instead, so that
users TAB-completing would easier notice the alternative:
toml2json-rust.

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/
 * Sponsorship: https://ko-fi.com/drjones

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Re: Bug#1061323: RFP: rust-toml2json -- A very small CLI for converting TOML to JSON

2024-02-22 Thread Facundo Gaich
Hi,

I can work on packaging this if you're still interested, I'd need a sponsor.

I've already done some preliminary work on this, in particular I renamed
the bin to "rust-toml2json" but maybe you've got a better idea?

Best,
Facundo