Skip to content

Commit

Permalink
feat: add curl (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen authored Jun 20, 2023
1 parent 9aab78b commit 84a8a34
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/envinfo.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/helpers/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,11 @@ module.exports = {
utils.which('ffmpeg'),
]).then(v => utils.determineFound('FFmpeg', v[0], v[1]));
},
getCurlInfo: () => {
utils.log('trace', 'getCurlInfo');
return Promise.all([
utils.run('curl --version').then(utils.findVersion),
utils.which('curl'),
]).then(v => utils.determineFound('Curl', v[0], v[1]));
},
};
1 change: 1 addition & 0 deletions src/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
'Mercurial',
'Subversion',
'FFmpeg',
'Curl',
],
Servers: ['Apache', 'Nginx'],
Virtualization: ['Docker', 'Parallels', 'VirtualBox', 'VMware Fusion'],
Expand Down

0 comments on commit 84a8a34

Please sign in to comment.