Skip to content

Commit

Permalink
feat: add yaml tools
Browse files Browse the repository at this point in the history
  • Loading branch information
phenix3443 committed Sep 18, 2023
1 parent 506b891 commit c798824
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
13 changes: 8 additions & 5 deletions content/posts/jq/index.md → content/posts/json/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "jq 命令"
description:
title: "JSON tools"
slug: json
description: JSOn 相关的工具
date: 2023-01-08T13:59:59+08:00
image:
math:
Expand All @@ -16,14 +17,16 @@ tags:

## 概述

## jq

[jq](https://stedolan.github.io/jq/) 是一个轻量级且灵活的命令行 JSON 处理器。

## 过滤器
### 过滤器

过滤器(filter)

## 命令行参数
### 命令行参数

## 遍历 object
### 遍历 object

`to_entries, from_entries, with_entries` 可以用来
27 changes: 27 additions & 0 deletions content/posts/yaml/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Yaml
description:
slug: yaml
date: 2023-09-18T19:50:23+08:00
featured: false
draft: true
comment: true
toc: true
reward: true
pinned: false
carousel: false
math: false
series: []
categories: [tools]
tags: [yaml]
images: []
---

Summary.

<!--more-->
## 概述

## yq

[yq](https://github.com/mikefarah/yq) 使用类似 [jq]({{< ref "../json#jq" >}}) 的语法,但可处理 yaml 文件以及 json、xml、properties、csv 和 tsv。它还不支持 jq 的所有功能,但支持最常用的操作和函数,而且还在不断增加。 但是该工具目前会自动格式化源文件代码,这是一个很大的问题。

0 comments on commit c798824

Please sign in to comment.