@tigrisdata/cli 2.13.1 → 2.14.0-beta.1
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/auth/s3-client.js +1 -1
- package/dist/chunk-2F6KRYMD.js +4 -0
- package/dist/chunk-2HWTMFLS.js +8 -0
- package/dist/chunk-CQDWZKYG.js +2 -0
- package/dist/chunk-PUTZ24A6.js +1 -0
- package/dist/chunk-S77OAN6Y.js +1 -0
- package/dist/chunk-S7W2ICW6.js +9 -0
- package/dist/chunk-TD2HGNDY.js +1 -0
- package/dist/chunk-UKNEQJZX.js +1 -0
- package/dist/cli-core.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/access-keys/assign.js +2 -2
- package/dist/lib/access-keys/create.js +2 -2
- package/dist/lib/access-keys/delete.js +2 -2
- package/dist/lib/access-keys/get.js +2 -2
- package/dist/lib/access-keys/list.js +2 -2
- package/dist/lib/buckets/create.js +1 -1
- package/dist/lib/buckets/delete.js +1 -1
- package/dist/lib/buckets/get.js +1 -1
- package/dist/lib/buckets/list.js +1 -1
- package/dist/lib/buckets/set-cors.js +1 -1
- package/dist/lib/buckets/set-locations.js +1 -0
- package/dist/lib/buckets/set-migration.js +1 -1
- package/dist/lib/buckets/set-notifications.js +1 -1
- package/dist/lib/buckets/set-transition.js +1 -1
- package/dist/lib/buckets/set-ttl.js +1 -1
- package/dist/lib/buckets/set.js +1 -1
- package/dist/lib/configure/index.js +1 -1
- package/dist/lib/cp.js +1 -1
- package/dist/lib/credentials/test.js +1 -1
- package/dist/lib/forks/create.js +1 -1
- package/dist/lib/forks/list.js +1 -1
- package/dist/lib/iam/policies/create.js +2 -2
- package/dist/lib/iam/policies/delete.js +2 -2
- package/dist/lib/iam/policies/edit.js +2 -2
- package/dist/lib/iam/policies/get.js +2 -2
- package/dist/lib/iam/policies/list.js +2 -2
- package/dist/lib/iam/users/invite.js +3 -3
- package/dist/lib/iam/users/list.js +5 -5
- package/dist/lib/iam/users/remove.js +3 -3
- package/dist/lib/iam/users/revoke-invitation.js +3 -3
- package/dist/lib/iam/users/update-role.js +3 -3
- package/dist/lib/login/credentials.js +1 -1
- package/dist/lib/login/oauth.js +1 -1
- package/dist/lib/login/select.js +1 -1
- package/dist/lib/logout.js +1 -1
- package/dist/lib/ls.js +1 -1
- package/dist/lib/mk.js +1 -1
- package/dist/lib/mv.js +1 -1
- package/dist/lib/objects/delete.js +1 -1
- package/dist/lib/objects/get.js +1 -1
- package/dist/lib/objects/list.js +1 -1
- package/dist/lib/objects/put.js +1 -1
- package/dist/lib/objects/set.js +1 -1
- package/dist/lib/organizations/create.js +3 -3
- package/dist/lib/organizations/list.js +2 -2
- package/dist/lib/organizations/select.js +2 -2
- package/dist/lib/presign.js +1 -1
- package/dist/lib/rm.js +1 -1
- package/dist/lib/snapshots/list.js +1 -1
- package/dist/lib/snapshots/take.js +1 -1
- package/dist/lib/stat.js +1 -1
- package/dist/lib/touch.js +1 -1
- package/dist/lib/whoami.js +2 -2
- package/dist/specs.yaml +283 -15
- package/dist/utils/interactive.js +1 -0
- package/dist/utils/locations.js +1 -1
- package/dist/utils/messages.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/package.json +5 -4
- package/dist/chunk-47THEW77.js +0 -8
- package/dist/chunk-4V35SYMM.js +0 -9
- package/dist/chunk-F2VBJEK7.js +0 -1
- package/dist/chunk-Q4KOY3VK.js +0 -1
- package/dist/chunk-SYGTCM6P.js +0 -2
- package/dist/chunk-TNOMT3EP.js +0 -4
- package/dist/chunk-YERF43U2.js +0 -1
- /package/dist/{chunk-VOQSWXBS.js → chunk-BQX7MWWL.js} +0 -0
package/dist/chunk-4V35SYMM.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{Command as k}from"commander";function I(){process.on("unhandledRejection",e=>{(e===""||e===void 0)&&(console.error(`
|
|
2
|
-
Operation cancelled`),process.exit(1)),console.error(`
|
|
3
|
-
Error:`,e instanceof Error?e.message:e),process.exit(1)}),process.on("uncaughtException",e=>{console.error(`
|
|
4
|
-
Error:`,e.message),process.exit(1)})}function v(e){return/^[a-zA-Z0-9_-]+$/.test(e)}function b(e){let t;e.type==="positional"?t=` ${e.name}`:(t=` --${e.name}`,e.alias&&typeof e.alias=="string"&&e.alias.length===1&&(t+=`, -${e.alias}`));let o=26,a=t.length>=o?t+" ":t.padEnd(o),n=e.description;return e.options&&(Array.isArray(e.options)&&typeof e.options[0]=="string"?n+=` (options: ${e.options.join(", ")})`:n+=` (options: ${e.options.map(r=>r.value).join(", ")})`),e.default&&(n+=` [default: ${e.default}]`),e.required&&(n+=" [required]"),e["required-when"]&&(n+=` [required when: ${e["required-when"]}]`),e.multiple&&(n+=" [multiple values: comma-separated]"),e.type==="positional"&&(n+=" [positional argument]"),e.examples&&e.examples.length>0&&(n+=` (examples: ${e.examples.join(", ")})`),`${a}${n}`}function f(e,t,o){return o(t)?!0:e.commands?e.commands.some(a=>f(a,[...t,a.name],o)):!1}function y(e,t,o,a){let n=o.join(" ");if(console.log(`
|
|
5
|
-
${e.name} ${n} - ${t.description}
|
|
6
|
-
`),t.commands&&t.commands.length>0){let r=t.commands.filter(s=>f(s,[...o,s.name],a));r.length>0&&(console.log("Commands:"),r.forEach(s=>{let i=` ${s.name}`;if(s.alias){let l=Array.isArray(s.alias)?s.alias:[s.alias];i+=` (${l.join(", ")})`}let c=i.padEnd(24);console.log(`${c}${s.description}`)}),console.log())}t.arguments&&t.arguments.length>0&&(console.log("Arguments:"),t.arguments.forEach(r=>{console.log(b(r))}),console.log()),t.examples&&t.examples.length>0&&(console.log("Examples:"),t.examples.forEach(r=>{console.log(` ${r}`)}),console.log()),t.commands&&t.commands.length>0&&console.log(`Use "${e.name} ${n} <command> help" for more information about a command.`)}function x(e,t,o){console.log(`Tigris CLI Version: ${t}
|
|
7
|
-
`),console.log(`Usage: tigris [command] [options]
|
|
8
|
-
`),console.log("Commands:"),e.commands.filter(n=>f(n,[n.name],o)).forEach(n=>{let r=` ${n.name}`;if(n.alias){let i=Array.isArray(n.alias)?n.alias:[n.alias];r+=` (${i.join(", ")})`}let s=r.padEnd(24);console.log(`${s}${n.description}`)}),console.log(`
|
|
9
|
-
Use "${e.name} <command> help" for more information about a command.`)}function g(e,t=[]){t.forEach(o=>{if(o.type==="positional"){let a=o.required?`<${o.name}>`:`[${o.name}]`;e.argument(a,o.description)}else{let n=o.alias&&typeof o.alias=="string"&&o.alias.length===1?`-${o.alias}, --${o.name}`:`--${o.name}`;o.type==="flag"||(o.type==="boolean"?n+=" [value]":o.options?n+=" <value>":n+=o.required||o["required-when"]?" <value>":" [value]"),e.option(n,o.description,o.default)}})}function q(e){return e.replace(/-([a-z])/g,(t,o)=>o.toUpperCase())}function C(e,t,o){if(o){let n=o.find(r=>r.name===t);if(n&&n.alias&&typeof n.alias=="string"){let r=n.alias.charAt(0).toUpperCase()+n.alias.slice(1);if(e[r]!==void 0)return e[r]}}let a=[t,t.replace(/-/g,""),t.replace(/-/g,"").toLowerCase(),t.charAt(0).toUpperCase(),q(t)];for(let n of a)if(e[n]!==void 0)return e[n]}function w(e,t){for(let o of e){if(o["required-when"]){let[a,n]=o["required-when"].split("="),r=C(t,a,e),s=C(t,o.name,e);if(r===n&&!s)return console.error(`--${o.name} is required when --${a} is ${n}`),!1}if(o.required&&!C(t,o.name,e))return console.error(`--${o.name} is required`),!1}return!0}function d(e,t,o){let a;"optsWithGlobals"in o&&typeof o.optsWithGlobals=="function"?a=o.optsWithGlobals():"opts"in o&&typeof o.opts=="function"?a=o.opts():a=o;let n={...a};return e.filter(s=>s.type==="positional").forEach((s,i)=>{t[i]!==void 0&&(s.multiple?n[s.name]=t[i].split(",").map(c=>c.trim()):n[s.name]=t[i])}),e.forEach(s=>{s.multiple&&s.type!=="positional"&&n[s.name]&&typeof n[s.name]=="string"&&(n[s.name]=n[s.name].split(",").map(i=>i.trim()))}),n}async function A(e,t,o=[],a={}){let{module:n,error:r}=await e(t);(r||!n)&&(console.error(r),process.exit(1));let s=t[t.length-1],i=n.default||n[s];typeof i!="function"&&(console.error(`Command not implemented: ${t.join(" ")}`),process.exit(1)),await i({...a,_positional:o})}function E(e,t,o,a=[]){let{specs:n,loadModule:r,hasImplementation:s}=e;for(let i of o){v(i.name)||(console.error(`Invalid command name "${i.name}": only alphanumeric, hyphens, and underscores allowed`),process.exit(1));let c=[...a,i.name];if(!f(i,c,s))continue;let l=t.command(i.name).description(i.description);if(i.alias&&(Array.isArray(i.alias)?i.alias:[i.alias]).forEach(m=>l.alias(m)),i.commands&&i.commands.length>0)if(E(e,l,i.commands,c),i.default){let p=i.commands.find(m=>m.name===i.default);if(p){g(l,i.arguments),g(l,p.arguments);let m=[...i.arguments||[],...p.arguments||[]];l.action(async(...u)=>{let $=u.pop(),h=u;m.length>0&&!w(m,d(m,h,$))||await A(r,[...c,p.name],h,d(m,h,$))})}}else l.action(()=>{y(n,i,c,s)});else g(l,i.arguments),l.action(async(...p)=>{let m=p.pop(),u=p;i.arguments&&!w(i.arguments,d(i.arguments,u,m))||await A(r,c,u,d(i.arguments||[],u,m))});l.command("help").description("Show help for this command").action(()=>{y(n,i,c,s)})}}function R(e){let{specs:t,version:o,hasImplementation:a}=e,n=new k;return n.name(t.name).description(t.description).version(o),E(e,n,t.commands),n.command("help").description("Show general help").action(()=>{x(t,o,a)}),n.action(()=>{x(t,o,a)}),n}export{I as a,v as b,b as c,f as d,y as e,x as f,g,w as h,d as i,E as j,R as k};
|
package/dist/chunk-F2VBJEK7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u,b as o,c as m,g}from"./chunk-SYGTCM6P.js";import{m as i,o as d,r as y}from"./chunk-DOUR5YEY.js";import{a as n}from"./chunk-2XAO2OYD.js";import p from"enquirer";var{prompt:S}=p,t=g("login","credentials");async function l(e){u(t);let s=e["access-key"]||e.accessKey||e.key||e.Key||e.accesskey,c=e["access-secret"]||e.accessSecret||e.secret||e.Secret||e.accesssecret;if(!s||!c){let r=[];s||r.push({type:"input",name:"accessKey",message:"Access Key ID:",required:!0}),c||r.push({type:"password",name:"accessSecret",message:"Secret Access Key:",required:!0});let a=await S(r);s=s||a.accessKey,c=c||a.accessSecret}(!s||!c)&&(m(t,"Access key and secret are required"),process.exit(1));let f=i()?.endpoint||n;await d({accessKeyId:s,secretAccessKey:c,endpoint:f}),await y("credentials"),o(t)}export{l as a};
|
package/dist/chunk-Q4KOY3VK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n=["usa","eur"],l=[{name:"USA",value:"usa"},{name:"Europe",value:"eur"}],i=[{name:"Amsterdam, Netherlands",value:"ams"},{name:"Frankfurt, Germany",value:"fra"},{name:"Sao Paulo, Brazil",value:"gru"},{name:"Ashburn, Virginia (US)",value:"iad"},{name:"Johannesburg, South Africa",value:"jnb"},{name:"London, United Kingdom",value:"lhr"},{name:"Tokyo, Japan",value:"nrt"},{name:"Chicago, Illinois (US)",value:"ord"},{name:"Singapore, Singapore",value:"sin"},{name:"San Jose, California (US)",value:"sjc"},{name:"Sydney, Australia",value:"syd"}];function u(t){let a=(Array.isArray(t)?t:[t]).flatMap(e=>e.split(",")).map(e=>e.trim()).filter(e=>e.length>0);if(a.length===0||a.length===1&&a[0]==="global")return{type:"global"};if(a.length===1){let e=a[0];return n.includes(e)?{type:"multi",values:e}:{type:"single",values:e}}return{type:"dual",values:a}}export{l as a,i as b,u as c};
|
package/dist/chunk-SYGTCM6P.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as u}from"./chunk-BETAO4PB.js";var a={success:"\u2714",failure:"\u2716",hint:"\u2192"};function r(){return process.stdout.isTTY===!0}function t(n){let s=u(n.command,n.operation);if(s)return s.messages}function o(n,s){let e=n;return e=e.replace(/\\n/g,`
|
|
2
|
-
`),s&&(e=e.replace(/\{\{(\w+)\}\}/g,(i,c)=>{let g=s[c];return g!==void 0?String(g):`{{${c}}}`})),e}function l(n,s){if(!r())return;let e=t(n);e?.onStart&&console.log(o(e.onStart,s))}function f(n,s){if(!r())return;let e=t(n);e?.onSuccess&&console.log(`${a.success} ${o(e.onSuccess,s)}`)}function m(n,s,e){let i=t(n);i?.onFailure&&console.error(`${a.failure} ${o(i.onFailure,e)}`),s&&console.error(` ${s}`)}function d(n,s){if(!r())return;let e=t(n);e?.onEmpty&&console.log(o(e.onEmpty,s))}function M(n,s){if(!r())return;let e=t(n);e?.onAlreadyDone&&console.log(o(e.onAlreadyDone,s))}function x(n,s){if(!r())return;let e=t(n);e?.hint&&console.log(`${a.hint} ${o(e.hint,s)}`)}function C(n,s){return{command:n,operation:s}}export{l as a,f as b,m as c,d,M as e,x as f,C as g};
|
package/dist/chunk-TNOMT3EP.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as s,b as e,c,e as g,f as l,g as u}from"./chunk-SYGTCM6P.js";import{b as a}from"./chunk-E4MLGABW.js";import{f as r}from"./chunk-DOUR5YEY.js";var t=u("login","oauth");async function f(){s(t);try{let i=a();if(await i.isAuthenticated()){g(t);return}await i.login({onDeviceCode:(o,p)=>{console.log(`
|
|
2
|
-
Your confirmation code: ${o}
|
|
3
|
-
`),console.log(`If browser doesn't open, visit: ${p}`)},onWaiting:()=>console.log(`
|
|
4
|
-
Waiting for authentication...`)});let n=await i.getOrganizations();if(n.length>0){let o=n[0];await r(o.id),e(t,{org:o.displayName||o.name}),n.length>1&&l(t,{count:n.length})}else e(t,{org:"none"})}catch{c(t),process.exit(1)}}var A=f;export{f as a,A as b};
|
package/dist/chunk-YERF43U2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s,c as l}from"./chunk-47THEW77.js";import{b as m}from"./chunk-BETAO4PB.js";import{a as t,k as i}from"./chunk-4V35SYMM.js";import{existsSync as c}from"fs";import{join as a,dirname as u}from"path";import{fileURLToPath as f}from"url";t();var j=f(import.meta.url),d=u(j),h=m(),y=o=>{if(o.length===0)return!1;let e=a(d,"lib",...o)+".js";if(c(e))return!0;let r=a(d,"lib",...o,"index.js");return!!c(r)},b=async o=>{let e=[`./lib/${o.join("/")}.js`,`./lib/${o.join("/")}/index.js`];for(let p of e){let n=await import(p).catch(()=>null);if(n)return{module:n,error:null}}return{module:null,error:`Command not found: ${o.join(" ")}`}},x=i({specs:h,version:s,loadModule:b,hasImplementation:y});x.parse();l();
|
|
File without changes
|