Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreasarvidsson/administratum
All the tools you need to perform your duty to the empire of man
https://github.com/andreasarvidsson/administratum
Last synced: about 1 month ago
JSON representation
All the tools you need to perform your duty to the empire of man
- Host: GitHub
- URL: https://github.com/andreasarvidsson/administratum
- Owner: AndreasArvidsson
- License: mit
- Created: 2023-03-15T01:31:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-15T09:27:06.000Z (about 1 year ago)
- Last Synced: 2024-05-02T05:49:21.357Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 414 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
$("ls -l");
``````js
$("echo", ["hello world"]);
```### Typescript implementation of common bash commands
```js
cp("file.txt", "dir/copy.txt");
``````js
mv("file.txt", "newName.txt");
``````js
mkdir("newFolder");
``````js
find("/dir", /name/);
``````js
grep(/WARN/, "file.log");
```### File utilities
```js
readFile("file.txt");
``````js
touch("file.txt");
``````js
Path.temp().join("dir", "file.txt").exists();
```### Download files
```js
await fetch("http://domain.com/setup.zip");
```### Extract archives
```js
await extract("archive.zip");
``````js
await extract("archive.tar");
```### Windows registery utilities
```js
regQueryKey("HKEY_CURRENT_USER\\Software\\Microsoft");
``````js
regAddValue("HKEY_CURRENT_USER\\Software\\MyApp", "enabled", "REG_DWORD", 1);
```### Automation pipeline
```js
flow("Create folders", (task) => {
task("Make applications dir", () => {
mkdir("applications");
});
});flow("Extract archives", (task) => {
task("Extract DB", async () => {
await extract("mongodb.zip", "applications");
});task("Extract WF", async () => {
await extract("wildly.zip", "applications");
});task.skip("Skipped", () => {
// Skipped
});
});
```![Adeptus administratum adept](./images/Imperio_adeptus_administratum_adepto.webp)