xxxxxxxxxx
.files | to_entries | .[].value | @sh "echo \(.content) > \(.filename)"
x
97
1
{
2
"url": "https://api.github.com/gists/968b8937a153127cfae4a173b6000c1e",
3
"forks_url": "https://api.github.com/gists/968b8937a153127cfae4a173b6000c1e/forks",
4
"commits_url": "https://api.github.com/gists/968b8937a153127cfae4a173b6000c1e/commits",
5
"id": "968b8937a153127cfae4a173b6000c1e",
6
"git_pull_url": "https://gist.github.com/968b8937a153127cfae4a173b6000c1e.git",
7
"git_push_url": "https://gist.github.com/968b8937a153127cfae4a173b6000c1e.git",
8
"html_url": "https://gist.github.com/968b8937a153127cfae4a173b6000c1e",
9
"files": {
10
".env": {
11
"filename": ".env",
12
"type": "text/plain",
13
"language": null,
14
"raw_url": "https://gist.githubusercontent.com/remy/968b8937a153127cfae4a173b6000c1e/raw/1566bb1d76a71f2d536a1b4568c42ef6d5b65e2e/.env",
15
"size": 7,
16
"truncated": false,
17
"content": "FOO=bar"
18
},
19
"index.js": {
20
"filename": "index.js",
21
"type": "application/javascript",
22
"language": "JavaScript",
23
"raw_url": "https://gist.githubusercontent.com/remy/968b8937a153127cfae4a173b6000c1e/raw/d375f0d17d57047192cee8039d1632e798d7c054/index.js",
24
"size": 30,
25
"truncated": false,
26
"content": "console.log(process.env.FOO);\n"
27
},
28
"package.json": {
29
"filename": "package.json",
30
"type": "application/json",
31
"language": "JSON",
32
"raw_url": "https://gist.githubusercontent.com/remy/968b8937a153127cfae4a173b6000c1e/raw/1ab40f16d6fb6d86278f61c5657cf01c6a2689b1/package.json",
33
"size": 218,
34
"truncated": false,
35
"content": "{\n \"scripts\": {\n \"start\": \"node -r dotenv-extended/config index.js\",\n \"dev\": \"nodemon -r dotenv-extended/config index.js\"\n },\n \"dependencies\": {\n \"dotenv-extended\": \"^2.0.1\",\n \"nodemon\": \"^1.12.7\"\n }\n}\n"
36
}
37
},
38
"public": true,
39
"created_at": "2017-12-14T17:26:55Z",
40
"updated_at": "2017-12-14T20:37:05Z",
41
"description": "",
42
"comments": 0,
43
"user": null,
44
"comments_url": "https://api.github.com/gists/968b8937a153127cfae4a173b6000c1e/comments",
xxxxxxxxxx
1
Alt + click to follow link