From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23510 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: K4zuki Newsgroups: gmane.text.pandoc Subject: YAML metadata files' override order in a single command line Date: Wed, 2 Oct 2019 09:59:20 -0700 (PDT) Message-ID: <2921e399-c659-4cba-9357-577c2b05aece@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2583_843337785.1570035560400" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="268733"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCY7J2HL3ALBB2NO2PWAKGQEXADBRMY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 02 18:59:25 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iFhyF-0017lb-PE for gtp-pandoc-discuss@m.gmane.org; Wed, 02 Oct 2019 18:59:23 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id q21sf11832169oic.22 for ; Wed, 02 Oct 2019 09:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=rL2i1Py71rs/wV4u7dRusdhnyg/3RFKTg06ApufD5hg=; b=Juk/7dU5ZL4VLD1Bjmt0gy7wZhDWPvm7aTtXgkxG+Bz/xDJn9+yp/5kfcsdaSY3jF+ 4Nf5fQT3j0kTMREEzQGuOugOzyc7OnTpQEvHnQaulW9aYAgMnKmlZjMQQeNf2vpmOs3h ATcJA33imag/GL1SHruCG16bX8vobha9xgW5qJP94LHtR+oDsPWKNr7ZWQteuEUuiYn7 PBoBXJCALhn3GPwp2G3RWyputQdFdE0pXsNwGz5JhH4E4BORHNbUmgrsaRMW8YPH7j2d BBRuBWYjZL+3PvKP7ZCxP2r0XpknZt1LaZ/IefG1p4ebRZDEnsouckL0CLBF01a9ECox nAuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=rL2i1Py71rs/wV4u7dRusdhnyg/3RFKTg06ApufD5hg=; b=P5eGM5AWK46ux2owxML7+fm7Qtw4+/HdhEFIhslsxXUEhnKhJ91cUDFEA7PSPcAD4L Vez9nseKbqK/ugQBJrW4dnPXMPe2g4YTSnEzsSdAs4KYrpGeuXONAHajWoNE9QBfgJ4h 3x4cc6QUYtG6O1tOMIu8agtVvRICstCZA8BF5oLERBIHOro+iNjfQ5hfe3g400IQsl5S Epi8uQnLGxMIDQcFAhZUIUCTwes4kziwZsuzyOhQj7lwAbRdTWU2BVGcNSEqEiljnK7i rfwN0fEj2B7dleNPr+GSHEUSXY6x1Ak+gzGjGZYe8etXu4dxbSA2wmWV0uId6dHXeVUy H1OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rL2i1Py71rs/wV4u7dRusdhnyg/3RFKTg06ApufD5hg=; b=PDCVoXKa3J+XqknRRDIgtiEnh/v5oD8prJEB16bVV3EroNRTFDFMGMgUdd8VGubY11 SCIHprW1sSX6U1iIfyATjLuFr65OpTTKXti+1V9SmK0YMHpQXfHURuGS2x81eRvuvCR7 gjVbtfIaDsTGPYUx9YTpKgeUiUUZHxbx+2GqxhT6Iu/OUbU3pc1rwPwO+skm4QXgOb3/ cQ44lGORWUXhaAvwHsrU1XjYpHNt9kaS3Qyln76QKW6bvcy9TcJWhk4OumK0VqDe4Ulx 3xC90aBP7fAjr6+Jmt50KINIKEr9fAEFseioMjznuPQrX4Y87GRzgEcXqS2UZ85r3M/m EzLA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAW+fMvPAjen7FRV1DL/gBn74BoPvc/BjsxMNM+VO6QKBWW6+Qbm 2y+svlC3coOBkvaq6a+gTzQ= X-Google-Smtp-Source: APXvYqwjU8AJPAZr80R0JYKRQyfq7Kvb6J4tLbHvmOuiDQu7TTTyk34pmckIkHSU45z67ctbQMVUiA== X-Received: by 2002:aca:32d4:: with SMTP id y203mr3740138oiy.17.1570035562470; Wed, 02 Oct 2019 09:59:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1d1:: with SMTP id e75ls576180ote.15.gmail; Wed, 02 Oct 2019 09:59:21 -0700 (PDT) X-Received: by 2002:a9d:aa8:: with SMTP id 37mr3315141otq.56.1570035561211; Wed, 02 Oct 2019 09:59:21 -0700 (PDT) X-Original-Sender: k.yamamoto.08136891-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23510 Archived-At: ------=_Part_2583_843337785.1570035560400 Content-Type: multipart/alternative; boundary="----=_Part_2584_484115851.1570035560400" ------=_Part_2584_484115851.1570035560400 Content-Type: text/plain; charset="UTF-8" Hello, I have a question regarding multiple yaml input in one command line. I have two yaml metadata files: system/config.yaml and user/config.yaml. They have some overlaps in entries. I tested the following command with expectation that user/config.yaml overrides system/config.yaml: pandoc -s -t markdown system/config.yaml user/config.yaml but in fact system/config.yaml wins. What system/config.yaml does not have is merged as expected (and vice versa). So the question is when multiple yaml with entry overlap given in a single command line, what kind of override order is applied? Thanks && Regards, Kazuki -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2921e399-c659-4cba-9357-577c2b05aece%40googlegroups.com. ------=_Part_2584_484115851.1570035560400 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I have a question regarding mult= iple yaml input in one command line.

I have two ya= ml metadata files: system/config.yaml and user/config.yaml. They h= ave some overlaps in entries.
I tested the following command with= expectation that user/config.yaml overrides system/config.yaml:
=
pandoc -s <= /span>-t markdown system/config.yaml user/config.yaml


but in fact system/config.yaml<= /font> wins. What system/config.yaml does not have is merged as expected (and vice versa).

So the question is when multiple yaml with entry overlap given in a= single command line, what kind of override order is applied?
Thanks && Regards,
Kazuki

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/2921e399-c659-4cba-9357-577c2b05aece%40googlegroups.co= m.
------=_Part_2584_484115851.1570035560400-- ------=_Part_2583_843337785.1570035560400--