Skip to content

Commit f4047e6

Browse files
committed
groupping shell under shell!
1 parent 5285ccc commit f4047e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+120
-104
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
var util = require('util')
4-
var shell = require('../helpers/shell')
4+
var shell = require('../../helpers/shell')
55

66
module.exports = function (source, options) {
77
var opts = util._extend({
@@ -49,6 +49,5 @@ module.exports.info = {
4949
key: 'curl',
5050
title: 'cURL',
5151
link: 'http://curl.haxx.se/',
52-
description: 'curl is a command line tool and library for transferring data with URL syntax',
53-
extname: '.sh'
52+
description: 'curl is a command line tool and library for transferring data with URL syntax'
5453
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
var util = require('util')
4-
var quote = require('../helpers/shell/quote')
4+
var quote = require('../../helpers/shell/quote')
55

66
module.exports = function (source, options) {
77
var opts = util._extend({
@@ -102,6 +102,5 @@ module.exports.info = {
102102
key: 'httpie',
103103
title: 'HTTPie',
104104
link: 'http://httpie.org/',
105-
description: 'a CLI, cURL-like tool for humans',
106-
extname: '.sh'
105+
description: 'a CLI, cURL-like tool for humans'
107106
}

src/targets/shell/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = require('require-directory')(module)

src/targets/shell/info.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict'
2+
3+
module.exports = {
4+
key: 'shell',
5+
title: 'Shell',
6+
extname: '.sh',
7+
default: 'curl'
8+
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
var util = require('util')
4-
var shell = require('../helpers/shell')
4+
var shell = require('../../helpers/shell')
55

66
module.exports = function (source, options) {
77
var opts = util._extend({
@@ -40,6 +40,5 @@ module.exports.info = {
4040
key: 'wget',
4141
title: 'Wget',
4242
link: 'https://www.gnu.org/software/wget/',
43-
description: 'a free software package for retrieving files using HTTP, HTTPS',
44-
extname: '.sh'
43+
description: 'a free software package for retrieving files using HTTP, HTTPS'
4544
}

test/fixtures/available-targets.json

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
[
22
{
3-
"key": "curl",
4-
"title": "cURL",
5-
"link": "http://curl.haxx.se/",
6-
"description": "curl is a command line tool and library for transferring data with URL syntax",
7-
"extname": ".sh"
8-
},
9-
{
10-
"key": "httpie",
11-
"title": "HTTPie",
12-
"link": "http://httpie.org/",
13-
"description": "a CLI, cURL-like tool for humans",
14-
"extname": ".sh"
15-
},
16-
{
17-
"key": "wget",
18-
"title": "Wget",
19-
"link": "https://www.gnu.org/software/wget/",
20-
"description": "a free software package for retrieving files using HTTP, HTTPS",
21-
"extname": ".sh"
3+
"key": "shell",
4+
"title": "Shell",
5+
"extname": ".sh",
6+
"default": "curl",
7+
"clients": [
8+
{
9+
"key": "curl",
10+
"title": "cURL",
11+
"link": "http://curl.haxx.se/",
12+
"description": "curl is a command line tool and library for transferring data with URL syntax"
13+
},
14+
{
15+
"key": "httpie",
16+
"title": "HTTPie",
17+
"link": "http://httpie.org/",
18+
"description": "a CLI, cURL-like tool for humans"
19+
},
20+
{
21+
"key": "wget",
22+
"title": "Wget",
23+
"link": "https://www.gnu.org/software/wget/",
24+
"description": "a free software package for retrieving files using HTTP, HTTPS"
25+
}
26+
]
2227
},
2328
{
2429
"key": "node",

test/fixtures/output/curl/application-form-encoded.sh renamed to test/fixtures/output/shell/curl/application-form-encoded.sh

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)