MCPcopy
hub / github.com/dthree/vantage / execute

Function execute

bin/vantage.js:80–94  ·  view source on GitHub ↗
(cmd, opt)

Source from the content-addressed store, hash-verified

78}
79
80function execute(cmd, opt) {
81 if (cmd === "tour") {
82 return showTour();
83 }
84
85 var vantage = new Vantage();
86 vantage.show();
87
88 var connection = parseConnection(cmd);
89
90 // If there is somewhere to go, connect.
91 if (cmd !== undefined) {
92 connect(vantage, connection.server, connection.port, opt);
93 }
94}
95
96execute(command, options);

Callers 1

vantage.jsFile · 0.70

Calls 3

showTourFunction · 0.85
parseConnectionFunction · 0.85
connectFunction · 0.85

Tested by

no test coverage detected