Administratum
All the tools you need to perform your duty to the empire of man
Examples
These are just a few examples of some of the features Administratum offers
Run cli commands
$("ls -l");
$("echo", ["hello world"]);
Typescript implementation of common bash commands
cp("file.txt", "dir/copy.txt");
mv("file.txt", "newName.txt");
mkdir("newFolder");
find("/dir", /name/);
grep(/WARN/, "file.log");
File utilities
readFile("file.txt");
touch("file.txt");
Path.temp().join("dir", "file.txt").exists();
Download files
await fetch("http://domain.com/setup.zip");
Extract archives
await extract("archive.zip");
await extract("archive.tar");
Windows registery utilities
regQueryKey("HKEY_CURRENT_USER\\Software\\Microsoft");
regAddValue("HKEY_CURRENT_USER\\Software\\MyApp", "enabled", "REG_DWORD", 1);
Automation pipeline
const createFolders = {
name: "Create folders",
run: ({ task }) => {
task("Make applications dir", () => {
mkdir("applications");
});
},
};
const extractArchives = {
name: "Extract archives",
run: ({ task }) => {
task("Extract DB", async () => {
await extract("mongodb.zip", "applications");
});
task("Extract WF", async () => {
await extract("wildly.zip", "applications");
});
},
};
await runFlows({
flows: [createFolders, extractArchives],
propertiesFile: "setup.properties",
});
