@binclusive/cli 0.1.0 → 0.1.2
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/dist/Menu-ICT4PQZV.js +2 -0
- package/dist/bin.js +130 -130
- package/package.json +9 -3
- package/dist/Menu-OSFE6ZQQ.js +0 -2
package/LICENSE.md
CHANGED
|
@@ -43,4 +43,4 @@ FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL BINCLUSIVE BE
|
|
|
43
43
|
LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN
|
|
44
44
|
CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
45
45
|
|
|
46
|
-
For licensing inquiries:
|
|
46
|
+
For licensing inquiries: info@binclusive.io
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ Authenticate CI runs with a Binclusive API token via the environment rather than
|
|
|
83
83
|
|
|
84
84
|
## Support
|
|
85
85
|
|
|
86
|
-
Docs and help: [binclusive.io](https://binclusive.io) ·
|
|
86
|
+
Docs and help: [binclusive.io](https://binclusive.io) · info@binclusive.io
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __cjsCreateRequire } from 'node:module'; const require = __cjsCreateRequire(import.meta.url);
|
|
2
|
+
import{a as b}from"./chunk-VCKJNF7P.js";import{a as m,b as o,l as p,m as d}from"./chunk-SNQ7SXG3.js";import{a as C}from"./chunk-3MDNIFWR.js";import{d as s}from"./chunk-PCQ2R3VR.js";var M=s(C(),1),t=s(b(),1);function h(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:T,userName:r,userEmail:l,onSelect:g}){let{exit:x}=d(),a=h(n),[c,f]=(0,M.useState)(0);return p((u,e)=>{if(e.upArrow&&f(i=>Math.max(0,i-1)),e.downArrow&&f(i=>Math.min(a.length-1,i+1)),e.return){let i=a[c];i&&(g(i.action),x())}e.escape&&(g("quit"),x())}),(0,t.jsxs)(m,{flexDirection:"column",children:[(0,t.jsx)(o,{bold:!0,children:"b8e \u2014 Binclusive CLI"}),n?(0,t.jsxs)(t.Fragment,{children:[r||l?(0,t.jsxs)(o,{dimColor:!0,children:["User: ",r??l,r&&l?(0,t.jsxs)(o,{dimColor:!0,children:[" \xB7 ",l]}):null]}):null,(0,t.jsxs)(o,{dimColor:!0,children:["Organization: ",T??"(none \u2014 select one)"]})]}):(0,t.jsx)(o,{dimColor:!0,children:"Not signed in"}),(0,t.jsx)(o,{dimColor:!0,children:"Use \u2191/\u2193 to navigate, Enter to select, Esc to quit"}),(0,t.jsx)(m,{flexDirection:"column",marginTop:1,children:a.map((u,e)=>(0,t.jsxs)(o,{color:e===c?"cyan":void 0,children:[e===c?"\u203A ":" ",u.label]},u.action))})]})}export{A as Menu};
|