We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e899aa commit c8d9dbaCopy full SHA for c8d9dba
config.js
@@ -19,7 +19,7 @@ module.exports = {
19
},
20
21
getProxyList : function() {
22
- return this.configObj.proxies.keys();
+ return Object.keys(this.configObj.proxies);
23
24
25
setProxy : function(name, object) {
index.js
@@ -7,6 +7,18 @@ loadConfig();
7
program
8
.version('0.0.1');
9
10
+/**
11
+ * List all the proxies available
12
+ */
13
+program
14
+ .command('ls')
15
+ .description('List proxies')
16
+ .action(function() {
17
+ for (var i = 0; i < config.getProxyList().length; i++) {
18
+ console.log(config.getProxyList()[i]);
+ }
+ });
+
/**
* Add a new proxy by giving a name
*/
0 commit comments