@binclusive/cli 0.2.0 → 0.3.0

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.
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __cjsCreateRequire } from 'node:module'; const require = __cjsCreateRequire(import.meta.url);
2
- import{c as x,f as I}from"./chunk-YIGNFOT4.js";import{a as f,b as i,m as g,r as p}from"./chunk-SNQ7SXG3.js";import"./chunk-3MDNIFWR.js";import{d}from"./chunk-PCQ2R3VR.js";var t=d(x(),1);function L(n){return n?[{label:"Select organization",action:"selectOrg"},{label:"Run audit",action:"audit"},{label:"View tickets",action:"tickets"},{label:"Whoami",action:"whoami"},{label:"Quit",action:"quit"}]:[{label:"Login",action:"login"},{label:"Quit",action:"quit"}]}function A({loggedIn:n,orgName:c,userName:o,userEmail:e,onSelect:r}){let{exit:a}=g(),s=p(),u=L(n),M=u.map(l=>({id:l.action,label:l.label})),C=n?`b8e CLI menu. ${o||e?`Signed in as ${o??e}. `:""}Organization: ${c??"none selected"}`:"b8e CLI menu. Not signed in",m=(0,t.jsx)(I,{title:s?C:"Menu",items:M,onSubmit:l=>{let b=u.find(T=>T.action===l[0]);b&&(r(b.action),a())},onCancel:()=>{r("quit"),a()}});return s?m:(0,t.jsxs)(f,{flexDirection:"column",children:[(0,t.jsx)(i,{bold:!0,children:"b8e \u2014 Binclusive CLI"}),n?(0,t.jsxs)(t.Fragment,{children:[o||e?(0,t.jsxs)(i,{dimColor:!0,children:["User: ",o??e,o&&e?(0,t.jsxs)(i,{dimColor:!0,children:[" \xB7 ",e]}):null]}):null,(0,t.jsxs)(i,{dimColor:!0,children:["Organization: ",c??"(none \u2014 select one)"]})]}):(0,t.jsx)(i,{dimColor:!0,children:"Not signed in"}),m]})}export{A as Menu};
2
+ import{c as x,f as I}from"./chunk-PG4MYNJU.js";import{a as f,b as i,m as g,r as p}from"./chunk-PSVNNOJC.js";import"./chunk-3MDNIFWR.js";import{d}from"./chunk-PCQ2R3VR.js";var t=d(x(),1);function L(n){return n?[{label:"Select organization",action:"selectOrg"},{label:"Run audit",action:"audit"},{label:"View tickets",action:"tickets"},{label:"Whoami",action:"whoami"},{label:"Quit",action:"quit"}]:[{label:"Login",action:"login"},{label:"Quit",action:"quit"}]}function A({loggedIn:n,orgName:c,userName:o,userEmail:e,onSelect:r}){let{exit:a}=g(),s=p(),u=L(n),M=u.map(l=>({id:l.action,label:l.label})),C=n?`b8e CLI menu. ${o||e?`Signed in as ${o??e}. `:""}Organization: ${c??"none selected"}`:"b8e CLI menu. Not signed in",m=(0,t.jsx)(I,{title:s?C:"Menu",items:M,onSubmit:l=>{let b=u.find(T=>T.action===l[0]);b&&(r(b.action),a())},onCancel:()=>{r("quit"),a()}});return s?m:(0,t.jsxs)(f,{flexDirection:"column",children:[(0,t.jsx)(i,{bold:!0,children:"b8e \u2014 Binclusive CLI"}),n?(0,t.jsxs)(t.Fragment,{children:[o||e?(0,t.jsxs)(i,{dimColor:!0,children:["User: ",o??e,o&&e?(0,t.jsxs)(i,{dimColor:!0,children:[" \xB7 ",e]}):null]}):null,(0,t.jsxs)(i,{dimColor:!0,children:["Organization: ",c??"(none \u2014 select one)"]})]}):(0,t.jsx)(i,{dimColor:!0,children:"Not signed in"}),m]})}export{A as Menu};