Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ const commands = {
term.stylePrint(_filesHere().join(" "));
},

date: function() {
const date = new Date();
term.stylePrint(date.toString());
},

// I am so, so sorry for this code.
cd: function(args) {
let dir = args[0] || "~";
Expand Down Expand Up @@ -395,6 +400,14 @@ const commands = {
term.stylePrint(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource ${args[0]}.`);
},

wget: function(args) {
if (args[0] === undefined) {
term.stylePrint("wget: missing URL");
return
}
term.stylePrint(`%wget% not installed. try: %curl% ${args[0]}`);
},

ftp: function(args) {
term.command(`curl ${args.join(" ")}`);
},
Expand Down