From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 366741F5AE for ; Tue, 16 Jun 2020 09:53:18 +0000 (UTC) Received: from localhost ([::1]:38982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jl8HM-0006WQ-Tt for e@80x24.org; Tue, 16 Jun 2020 05:53:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jl8HL-0006WI-EJ for dtas-all@nongnu.org; Tue, 16 Jun 2020 05:53:15 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:35029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jl8HJ-0003MI-Hu for dtas-all@nongnu.org; Tue, 16 Jun 2020 05:53:15 -0400 Received: by mail-wm1-x336.google.com with SMTP id q25so2410283wmj.0 for ; Tue, 16 Jun 2020 02:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Pj9JOjNfXlyNMSkCEB0a8suG0WK554T3yZGfIfm9oT0=; b=bm9cu4Oy1Ah0DT6pzkISIGMHpR5O99VJGWJokzO3acu+/iQuTdUNXI7UkKrTgm7e/p 87wBZQyU0HNW3TNhIr0eG1pkH/FDCHiNNHULk1/1NAtUFrR971XDexRfUGedD/jFrd7/ 9jR6xTwqNn4Y6Z8DloMYtqzNgmJ32NGtTe12X6YRRjLe4YssI1C4aZNoQsqSomWY7QXy 8QH/UnMRoRclmPKVCuGdxLhFXKM5uLnapCkIusNv37R0ZrepCZ+oAy7cemE9pQTzH8iG Bx4kEcOvPyxbpayjbXTLxBC/OIrcMSv48BWR4K3i0MTlLQfMOHMalgQniCpj4CnaV/Fp F1OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Pj9JOjNfXlyNMSkCEB0a8suG0WK554T3yZGfIfm9oT0=; b=IZZbbkWxjmHPgxNy3Bu3iXEPgbHQCCj/cL2yAc7FIbipM1PiWDxvmQMxFXjMToqo3M c7/8IQpOYOIwxvWKfLImbOj6j93AOYzM+NBPMIfllENQF2XUmjSC7BFbGILyNtEREbxK rDqgnzM9oqcWjC4XEfULt2mtX1x+xvVHxO6lMRIFSPHeIhTM7IK814bSYIETLewTvXGj +qGC9LqE65nAxr8HgtsqzDzbtC/dK4f6K/IAxmrfRxIc2CeTk9+5HheuSo0UywLUq5wM j8DA5bdu2b1eLkK/fVo7nD1YWQ4vfh8XW/zlTlDhQELyKnGuf7NgqU45w+vW8V8m3mQz +PfA== X-Gm-Message-State: AOAM5330G3/95A2N97Uny8w1w9bR3huqj1qrbiGyJh7PMR4bLB4vsStg iJi+m+PQezsWKuM85q12uqJLGUDF X-Google-Smtp-Source: ABdhPJzAY16Tlnp0S5shonYqYe1GIafo/YL8MbNFrzkx3odg6/AnSw3LXt97ymkZ+Np7idofXbGTng== X-Received: by 2002:a7b:cb56:: with SMTP id v22mr2394057wmj.180.1592301191591; Tue, 16 Jun 2020 02:53:11 -0700 (PDT) Received: from localhost (94.196.249.200.threembb.co.uk. [94.196.249.200]) by smtp.gmail.com with ESMTPSA id f185sm3273837wmf.43.2020.06.16.02.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2020 02:53:10 -0700 (PDT) Date: Tue, 16 Jun 2020 10:53:07 +0100 From: James Rowe To: dtas-all@nongnu.org Subject: Re: Line wrapping in YAML output Message-ID: <20200616095307.65qsl7rjr66nroz5@gmail.com> Mail-Followup-To: dtas-all@nongnu.org References: <20200613152543.owwp2ey3byvf2row@gmail.com> <20200615002434.GA30135@dcvr> <20200615111727.yn23ntg6spxa7ft4@gmail.com> <20200616041938.GA7549@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200616041938.GA7549@dcvr> User-Agent: NeoMutt/20180716 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=jnrowe@gmail.com; helo=mail-wm1-x336.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: duct tape audio suite List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+e=80x24.org@nongnu.org Sender: "dtas-all" * Eric Wong (e@80x24.org) wrote: > James Rowe wrote: > > Pretty much always parsing dtas-ctl, because I hardly ever seem to > > have a {nc,socat}-style tool with SOCK_SEQPACKET support. > > It's not well-documented, but socat supports setting type= to > the numeric value of SOCK_SEQPACKET. At least on Linux, > SOCK_SEQPACKET is 5 (ruby -rsocket -e 'puts Socket::SOCK_SEQPACKET'): > > echo current | socat UNIX-CONNECT:$HOME/.dtas/player.sock,type=5 - Ah, thanks! I hadn’t realised that. > > You’ve pushed me enough to think that dropping a yaml2json¹ script in > > ~/bin would often be enough for many of my use cases. That simple > > change would allow fancy jid²/jq³ support along with hacky sed/awk > > scripts. > > Cool. Fwiw, I also just found "yq" looking for a jq-like thing > for YAML: https://kislyuk.github.io/yq/ Looks like it is mostly just a more thought out implementation of my suggestion¹. > > So… I’m not unsure whether I still want this change. There are > > "not unsure"? Based on the rest of what you've written, > I think you meant just to write either "unsure" or "not sure"? Oops, my bad. I did mean “not sure”. > > workarounds with few drawbacks, and nobody else appears to have > > complained in the previous seven years about this. > > AFAIK, you're maybe the 3rd user of this? :) In the Old World before The Collapse, I’d pushed dtas at $WORK. There were quite a few people happily using it, albeit mostly just to enqueue a track or toggle their personal sinks on and off. Perhaps, in time, we will bring the count back up! > Anyways, I'm not inclined to change this, either; since > reformatting YAML or converting to JSON is pretty easy > in Ruby/Perl/Python. Agree. Thanks, James 1. https://github.com/kislyuk/yq/blob/master/yq/__init__.py#L154