diff --git a/ots/README.md b/ots/README.md new file mode 100644 index 0000000..0c0b005 --- /dev/null +++ b/ots/README.md @@ -0,0 +1,64 @@ +--- +title: ots +homepage: https://github.com/emdneto/otsgo +tagline: | + A simple CLI and API client for One-Time Secret +--- + +To update or switch versions, run `webi ots@stable` (or `@v2`, `@beta`, +etc). + +### Files + +These are the files / directories that are created and/or modified with this +install: + +```txt +~/.config/envman/PATH.env +~/.local/bin/ots +~/.local/opt/ots +``` + +## Cheat Sheet + +### Share a generated secret + +```bash +ots share -g +``` + +### Share custom secret with ttl and passphrase + +```bash +ots share -s hellosecret -t 300 -p hello +``` + +### Share secret from file +```bash +cat < /dev/null | + head -n 1 | + cut -d ' ' -f 2 + } + +} + +__init_ots diff --git a/ots/releases.js b/ots/releases.js new file mode 100644 index 0000000..4c2e719 --- /dev/null +++ b/ots/releases.js @@ -0,0 +1,20 @@ +'use strict'; + +var github = require('../_common/github.js'); +var owner = 'emdneto'; +var repo = 'otsgo'; + +module.exports = function (request) { + return github(request, owner, repo).then(function (all) { + return all; + }); +}; + +if (module === require.main) { + module.exports(require('@root/request')).then(function (all) { + all = require('../_webi/normalize.js')(all); + // just select the first 5 for demonstration + all.releases = all.releases.slice(0, 5); + console.info(JSON.stringify(all, null, 2)); + }); +} diff --git a/test/install.sh b/test/install.sh index 4fad9be..a671b7b 100644 --- a/test/install.sh +++ b/test/install.sh @@ -53,6 +53,7 @@ function __rmrf_local() { nerd-font \ nerdfont \ node \ + ots \ pandoc \ pathman \ prettier \ @@ -144,6 +145,7 @@ function __rmrf_local() { nerd-font \ nerdfont \ node \ + ots \ pandoc \ pathman \ prettier \ @@ -239,6 +241,7 @@ function __test() { nerd-font \ nerdfont \ node \ + ots \ pandoc \ pathman \ postgres \