Compare commits
No commits in common. "0cde238bc12b159f37233e1338244f40add7bbac" and "a193bf5cad7cceaee0f1f6ac26efc3a058adaa27" have entirely different histories.
0cde238bc1
...
a193bf5cad
|
|
@ -2,7 +2,7 @@ import { homedir } from "os"
|
||||||
import * as git from "../git.ts"
|
import * as git from "../git.ts"
|
||||||
import * as vm from "../vm.ts"
|
import * as vm from "../vm.ts"
|
||||||
import * as state from "../state.ts"
|
import * as state from "../state.ts"
|
||||||
import { reset, dim, bold, green, yellow, cyan, white, red } from "../fmt.ts"
|
import { reset, dim, bold, green, yellow, cyan, white } from "../fmt.ts"
|
||||||
|
|
||||||
export async function action(opts: { json?: boolean }) {
|
export async function action(opts: { json?: boolean }) {
|
||||||
const root = await git.repoRoot()
|
const root = await git.repoRoot()
|
||||||
|
|
@ -37,9 +37,6 @@ export async function action(opts: { json?: boolean }) {
|
||||||
|
|
||||||
if (sessions.length === 0) {
|
if (sessions.length === 0) {
|
||||||
console.log("◆ No active sessions.")
|
console.log("◆ No active sessions.")
|
||||||
if ((await vm.status()) !== "running") {
|
|
||||||
console.log(`\n${red}VM is not running.${reset}`)
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,8 +77,4 @@ export async function action(opts: { json?: boolean }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`\n${dim}◯ idle${reset} · ${cyan}◎ active${reset} · ${yellow}◐ unsaved${reset} · ${green}● saved${reset}`)
|
console.log(`\n${dim}◯ idle${reset} · ${cyan}◎ active${reset} · ${yellow}◐ unsaved${reset} · ${green}● saved${reset}`)
|
||||||
|
|
||||||
if ((await vm.status()) !== "running") {
|
|
||||||
console.log(`\n${red}VM is not running.${reset}`)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ export const reset = "\x1b[0m"
|
||||||
export const dim = "\x1b[2m"
|
export const dim = "\x1b[2m"
|
||||||
export const green = "\x1b[32m"
|
export const green = "\x1b[32m"
|
||||||
export const yellow = "\x1b[33m"
|
export const yellow = "\x1b[33m"
|
||||||
export const red = "\x1b[31m"
|
|
||||||
export const cyan = "\x1b[36m"
|
export const cyan = "\x1b[36m"
|
||||||
|
|
||||||
// ── Formatted output ────────────────────────────────────────────────
|
// ── Formatted output ────────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user