challenge1.js (416B)
1 2 window.FakeTerminal.command.challenge1 = function (instance) { 3 window.FakeTerminal.command.apply(this, arguments); 4 5 const base = this; 6 7 base.info = () => { 8 return { 9 description: "Enter challenge 1" 10 } 11 } 12 13 base.execute = () => { 14 window.location = "/challenge/1"; 15 16 base.deferred.resolve(); 17 return base.deferred.promise(); 18 } 19 20 return base; 21 }