aboutsummaryrefslogtreecommitdiffstats
path: root/pkg93.js
diff options
context:
space:
mode:
authorUnknown2018-04-02 14:08:43 +0100
committerUnknown2018-04-02 14:08:43 +0100
commitae2c5fe141a11e598032d1b3ac26aafc4d961799 (patch)
tree2557e1b4b9da2fab3df4c1df9c418272217e1ce7 /pkg93.js
parent484a85333c029a80935fe4b1a6b65e7c18e58a71 (diff)
add documentation and main repo
Diffstat (limited to 'pkg93.js')
-rw-r--r--pkg93.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkg93.js b/pkg93.js
new file mode 100644
index 0000000..fd94a0e
--- /dev/null
+++ b/pkg93.js
@@ -0,0 +1,37 @@
+le._apps.pkg93 = {
+ exec: function() {
+ const args = this.arg.arguments;
+ const version = "v0.1.0";
+ if (localStorage[".config/pkg93.json"] == undefined) {
+ localStorage[".config/pkg93.json"] = '{"sources": [], "pkgs": [], "cache": []}';
+ }
+ if (args.length == 0) {
+ $log.info(`pkg93 ${version} help`);
+ $log(`Usage: pkg93 [command]
+Command can be one of the below:
+update Updates package listing
+get [package] Installs a package
+rm [package] Uninstalls a package
+add-repo [url] Adds a repository
+rm-repo [id] Removes a repository
+ls [pkgs|installed|repos] Lists all packages, installed
+ packages or repositories.
+help Gets help for a command
+
+Examples:
+pkg93 get gud
+pkg93 rm kebab
+pkg93 help ivefallenandicantgetup`);
+ } else {
+ if (args[0] == "update") {
+ var config = JSON.parse(localStorage[".config/pkg93.json"]);
+ config.sources.forEach((value) => {
+
+ });
+ }
+ }
+ },
+ icon: "/c/sys/skins/w93/install.png",
+ terminal: true,
+ hascli: true
+}