UNPKG

bunny-move

Version:

Move files to and from your storage zones with bunny.net in a single cli command 🐰

19 lines (15 loc) 1.3 kB
#!/usr/bin/env node import { createRequire } from 'module';const require = createRequire(import.meta.url); process.on("SIGINT",()=>process.exit(1));process.on("SIGQUIT",()=>process.exit(1));process.on("SIGTERM",()=>process.exit(1));process.env.CI||process.on("beforeExit",async()=>{process.stdout.write("\x1B[?25h")});import o from"react";if(!globalThis.React)globalThis.React=o;else throw new Error("react-shim.tsx is no longer needed");import r from"pastel";import{Text as p}from"ink";import{readPackageUp as t}from"read-package-up";import{jsx as u}from"react/jsx-runtime";var s=await t({cwd:import.meta.dirname}),{version:e}=s.packageJson;var n=new r({description:`Move files from one location to other locations. Example Commands: bunny-move ./dist my-storage-zone bunny-move my-storage-zone /Users/user/Desktop/projects/project/dist bunny-move ./dist my-other-storage-zone 472435 Example Arguments: storage zone name my-storage-zone storage zone id 472435 relative path ./dist absolute path /Users/user/Desktop/projects/project/dist Bunny API Access Key: https://dash.bunny.net/account/api-key https://panel.bunny.net/account`,importMeta:import.meta,name:"bunny-move",version:e});await n.run();