This commit is contained in:
Chris Wanstrath 2025-09-23 22:00:10 -07:00
parent dff4831a81
commit a01e45b2b0

18
app/nose/bin/unshare.ts Normal file
View File

@ -0,0 +1,18 @@
import { apps } from "app/src/webapp"
import { disconnectSneaker, sneakers } from "app/src/sneaker"
export default async function (app: string) {
if (!app) {
return "usage: unshare <app>"
}
if (!apps().includes(app)) {
return { error: `${app} not found` }
}
if (!sneakers().includes(app)) {
return { error: `${app} not shared` }
}
return (await disconnectSneaker(app)) ? "unshared" : `${app} wasn't shared`
}