viyv-daemon 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43706,6 +43706,7 @@ function truncateUrl(url, maxLen) {
|
|
|
43706
43706
|
}
|
|
43707
43707
|
|
|
43708
43708
|
// src/cli/index.ts
|
|
43709
|
+
var PACKAGE_VERSION = "0.1.3";
|
|
43709
43710
|
function formatUptime(ms) {
|
|
43710
43711
|
const seconds = Math.floor(ms / 1e3);
|
|
43711
43712
|
const minutes = Math.floor(seconds / 60);
|
|
@@ -43735,7 +43736,7 @@ function formatUptimeShort(startedAt) {
|
|
|
43735
43736
|
}
|
|
43736
43737
|
function createCli() {
|
|
43737
43738
|
const program2 = new Command();
|
|
43738
|
-
program2.name("viyv-daemon").description("Viyv Agent Node Daemon").version(
|
|
43739
|
+
program2.name("viyv-daemon").description("Viyv Agent Node Daemon").version(PACKAGE_VERSION);
|
|
43739
43740
|
program2.command("list").alias("ls").description("List running daemon instances").option("--json", "Output as JSON").action((options) => {
|
|
43740
43741
|
const daemons = discoverDaemons();
|
|
43741
43742
|
if (daemons.length === 0) {
|