@tabsmith/autocomplete-specs 1.0.0 → 1.0.15

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.
Files changed (108) hide show
  1. package/build/@magnolia/cli.js +2 -2
  2. package/build/@withfig/autocomplete-tools.js +2 -2
  3. package/build/airflow.js +2 -2
  4. package/build/ansible-playbook.js +2 -2
  5. package/build/apt.js +4 -4
  6. package/build/asr.js +2 -2
  7. package/build/bun.js +9 -9
  8. package/build/cargo.js +4 -4
  9. package/build/cd.js +2 -2
  10. package/build/chezmoi.js +2 -2
  11. package/build/cloudflared.js +2 -2
  12. package/build/coda.js +3 -3
  13. package/build/codeburn.js +1 -0
  14. package/build/codesign.js +2 -2
  15. package/build/dapr.js +2 -2
  16. package/build/deno/generators.js +4 -4
  17. package/build/deno.js +2 -2
  18. package/build/deployctl.js +2 -2
  19. package/build/direnv.js +2 -2
  20. package/build/docker.js +18 -18
  21. package/build/dotenv-vault.js +2 -2
  22. package/build/dotnet/dotnet-add.js +2 -2
  23. package/build/dotnet/dotnet-build.js +2 -2
  24. package/build/dotnet/dotnet-clean.js +2 -2
  25. package/build/dotnet/dotnet-format.js +2 -2
  26. package/build/dotnet/dotnet-list.js +2 -2
  27. package/build/dotnet/dotnet-migrate.js +2 -2
  28. package/build/dotnet/dotnet-nuget.js +3 -3
  29. package/build/dotnet/dotnet-pack.js +2 -2
  30. package/build/dotnet/dotnet-publish.js +2 -2
  31. package/build/dotnet/dotnet-remove.js +2 -2
  32. package/build/dotnet/dotnet-restore.js +2 -2
  33. package/build/dotnet/dotnet-sln.js +2 -2
  34. package/build/dotnet/dotnet-store.js +2 -2
  35. package/build/dotnet/dotnet-test.js +2 -2
  36. package/build/dotnet/dotnet-tool.js +3 -3
  37. package/build/dotnet.js +2 -2
  38. package/build/dsh.js +2 -0
  39. package/build/dtm.js +3 -3
  40. package/build/dynamic/index.js +1 -1
  41. package/build/elixir.js +2 -2
  42. package/build/elm-json.js +2 -2
  43. package/build/esbuild.js +3 -3
  44. package/build/file.js +2 -2
  45. package/build/flutter.js +5 -5
  46. package/build/gh.js +6 -37
  47. package/build/git.js +20 -20
  48. package/build/glow.js +2 -2
  49. package/build/hub.js +20 -20
  50. package/build/iex.js +2 -2
  51. package/build/index.js +1 -1
  52. package/build/index.json +1 -1
  53. package/build/java.js +2 -2
  54. package/build/julia.js +2 -2
  55. package/build/limactl.js +3 -3
  56. package/build/man.js +3 -3
  57. package/build/meteor.js +3 -3
  58. package/build/mgnl.js +2 -2
  59. package/build/mix.js +2 -2
  60. package/build/mongoimport.js +2 -2
  61. package/build/n.js +3 -3
  62. package/build/ni.js +2 -2
  63. package/build/node.js +2 -2
  64. package/build/npm.js +2 -2
  65. package/build/nr.js +3 -3
  66. package/build/nrm.js +2 -2
  67. package/build/opencode.js +2 -2
  68. package/build/osascript.js +2 -2
  69. package/build/osqueryi.js +2 -2
  70. package/build/pandoc.js +3 -3
  71. package/build/pdfunite.js +2 -2
  72. package/build/pi.js +2 -2
  73. package/build/pipenv.js +2 -2
  74. package/build/pm2.js +2 -2
  75. package/build/pnpm.js +23 -24
  76. package/build/pod.js +2 -2
  77. package/build/pre-commit.js +126 -126
  78. package/build/python.js +2 -2
  79. package/build/python3.js +2 -2
  80. package/build/r.js +3 -3
  81. package/build/rails.js +3 -3
  82. package/build/rancher.js +3 -3
  83. package/build/react-native.js +5 -5
  84. package/build/robot.js +2 -2
  85. package/build/rojo.js +2 -2
  86. package/build/rollup.js +2 -2
  87. package/build/rscript.js +2 -2
  88. package/build/rush.js +5 -5
  89. package/build/rushx.js +4 -4
  90. package/build/scc.js +2 -2
  91. package/build/shortcuts.js +2 -2
  92. package/build/sidekiq.js +2 -2
  93. package/build/sqlite3.js +2 -2
  94. package/build/streamlit.js +2 -2
  95. package/build/subl.js +2 -2
  96. package/build/swift.js +2 -2
  97. package/build/systemctl.js +2 -2
  98. package/build/ts-node.js +3 -3
  99. package/build/tsc.js +2 -2
  100. package/build/tsx.js +2 -2
  101. package/build/turbo.js +20 -20
  102. package/build/typst.js +2 -2
  103. package/build/vsce.js +20 -20
  104. package/build/wasm-bindgen.js +2 -2
  105. package/build/yarn.js +4 -4
  106. package/build/yomo.js +2 -2
  107. package/package.json +20 -20
  108. package/build/ai-agents specs.js +0 -1
package/build/gh.js CHANGED
@@ -1,38 +1,7 @@
1
- var ne=Object.create;var W=Object.defineProperty;var ie=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var oe=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ae=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of re(t))!se.call(e,r)&&r!==n&&W(e,r,{get:()=>t[r],enumerable:!(i=ie(t,r))||i.enumerable});return e};var me=(e,t,n)=>(n=e!=null?ne(oe(e)):{},ae(t||!e||!e.__esModule?W(n,"default",{value:e,enumerable:!0}):n,e));var U=q(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.shellExpand=E.ensureTrailingSlash=void 0;var ce=e=>e.endsWith("/")?e:`${e}/`;E.ensureTrailingSlash=ce;var pe=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,le=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,r=>{var o;let s=r.slice(1);return(o=t[s])!==null&&o!==void 0?o:r}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(r,o,s)=>{var l,d;return(d=(l=t[o])!==null&&l!==void 0?l:s)!==null&&d!==void 0?d:r}),de=(e,t)=>{var n;let{environmentVariables:i}=t;return le(pe(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};E.shellExpand=de});var z=q(w=>{"use strict";var ue=w&&w.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(a){try{c(i.next(a))}catch(u){s(u)}}function d(a){try{c(i.throw(a))}catch(u){s(u)}}function c(a){a.done?o(a.value):r(a.value).then(l,d)}c((i=i.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.filepaths=w.folders=w.getCurrentInsertedDirectory=w.sortFilesAlphabetically=void 0;var C=U();function J(e,t=[]){let n=t.map(r=>r.toLowerCase()),i=e.filter(r=>!n.includes(r.toLowerCase()));return[...i.filter(r=>!r.startsWith(".")).sort((r,o)=>r.localeCompare(o)),...i.filter(r=>r.startsWith(".")).sort((r,o)=>r.localeCompare(o)),"../"]}w.sortFilesAlphabetically=J;var ge=(e,t,n)=>{if(e===null)return"/";let i=(0,C.shellExpand)(t,n),r=i.slice(0,i.lastIndexOf("/")+1);return r===""?(0,C.ensureTrailingSlash)(e):r.startsWith("/")?r:`${(0,C.ensureTrailingSlash)(e)}${r}`};w.getCurrentInsertedDirectory=ge;function V(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:r=!1,editFileSuggestions:o,editFolderSuggestions:s,rootDirectory:l,showFolders:d="always"}=e,c=new Set(t),a=new Set(n),u=()=>t.length>0||n.length>0||i,b=(h=[])=>u()?h.filter(({name:y="",type:R})=>{if(!r&&R==="folder"||a.has(y)||i&&y.match(i))return!0;let[,...g]=y.split(".");if(g.length>=1){let O=g.length-1,j=g[O];do{if(c.has(j))return!0;O-=1,j=[g[O],j].join(".")}while(O>=0)}return!1}):h,k=(h=[])=>!o&&!s?h:h.map(y=>Object.assign(Object.assign({},y),(y.type==="file"?o:s)||{}));return{trigger:(h,y)=>{let R=h.lastIndexOf("/"),g=y.lastIndexOf("/");return R!==g?!0:R===-1&&g===-1?!1:h.slice(0,R)!==y.slice(0,g)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,y,R)=>ue(this,void 0,void 0,function*(){var g;let{isDangerous:O,currentWorkingDirectory:j,searchTerm:f}=R,T=(g=(0,w.getCurrentInsertedDirectory)(l??j,f,R))!==null&&g!==void 0?g:"/";try{let I=yield y({command:"ls",args:["-1ApL"],cwd:T}),te=J(I.stdout.split(`
2
- `),[".DS_Store"]),M=[];for(let D of te)if(D){let P=D.endsWith("/")?"folders":"filepaths";(P==="filepaths"&&d!=="only"||P==="folders"&&d!=="never")&&M.push({type:P==="filepaths"?"file":"folder",name:D,insertValue:D,isDangerous:O,context:{templateType:P}})}return k(b(M))}catch{return[]}})}}w.folders=Object.assign(()=>V({showFolders:"only"}),Object.freeze(V({showFolders:"only"})));w.filepaths=Object.assign(V,Object.freeze(V()))});var Q=q(x=>{"use strict";var A=x&&x.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(a){try{c(i.next(a))}catch(u){s(u)}}function d(a){try{c(i.throw(a))}catch(u){s(u)}}function c(a){a.done?o(a.value):r(a.value).then(l,d)}c((i=i.apply(e,t||[])).next())})};Object.defineProperty(x,"__esModule",{value:!0});x.keyValueList=x.keyValue=x.valueList=void 0;var B=new Map;function F(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function $(e,t,n){return A(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return F(t,i)}if(typeof e[0]=="string"){let i=e.map(r=>({name:r}));return F(t,i)}return F(t,e)})}function G(e,t,n,i){return A(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let r=B.get(e);return r===void 0&&(r=yield $(e,t,i),B.set(e,r)),r}return $(e,t,i)})}function K(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function _(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function H(e,t){let n=new Set(e);return t.filter(i=>{var r;return typeof i.name=="string"?!n.has(i.name):!(!((r=i.name)===null||r===void 0)&&r.some(o=>n.has(o)))})}function he({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:r=!1}){return{trigger:(o,s)=>o.lastIndexOf(e)!==s.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>A(this,void 0,void 0,function*(){var s;let l=yield G(t,i?e:"",n,o);if(r)return l;let[d]=o,c=(s=d[d.length-1])===null||s===void 0?void 0:s.split(e);return H(c,l)})}}x.valueList=he;function fe({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:r=!0}){return{trigger:(o,s)=>o.indexOf(e)!==s.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>A(this,void 0,void 0,function*(){let[s]=o,d=!s[s.length-1].includes(e),c=d?t:n,a=K(d,i);return G(c,d&&r?e:"",a,o)})}}x.keyValue=fe;function ye({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:r=!1,insertSeparator:o=!0,insertDelimiter:s=!1,allowRepeatedKeys:l=!1,allowRepeatedValues:d=!0}){return{trigger:(c,a)=>{let u=_(c,e,t),b=_(a,e,t);return u!==b},getQueryTerm:c=>{let a=_(c,e,t);return c.slice(a+1)},custom:(...c)=>A(this,void 0,void 0,function*(){let[a]=c,u=a[a.length-1],b=_(u,e,t),k=b===-1||u.slice(b,b+e.length)!==e,h=k?n:i,y=K(k,r),g=yield G(h,k?o?e:"":s?t:"",y,c);if(k){if(l)return g;let j=u.split(t).map(f=>f.slice(0,f.indexOf(e)));return H(j,g)}if(d)return g;let O=u.split(t).map(j=>j.slice(j.indexOf(e)+e.length));return H(O,g)})}}x.keyValueList=ye});var Y=q(L=>{"use strict";var be=L&&L.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(a){try{c(i.next(a))}catch(u){s(u)}}function d(a){try{c(i.throw(a))}catch(u){s(u)}}function c(a){a.done?o(a.value):r(a.value).then(l,d)}c((i=i.apply(e,t||[])).next())})};Object.defineProperty(L,"__esModule",{value:!0});L.ai=void 0;var we=4097,ve=4,Oe=.8,Se=we*ve*Oe;function Re({name:e,prompt:t,message:n,postProcess:i,temperature:r,splitOn:o}){return{scriptTimeout:15e3,custom:(s,l,d)=>be(this,void 0,void 0,function*(){var c,a;let u=yield l({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(u.stdout))return[];let b=typeof t=="function"?yield t({tokens:s,executeCommand:l,generatorContext:d}):t,k=typeof n=="function"?yield n({tokens:s,executeCommand:l,generatorContext:d}):n;if(k===null||k.length===0)return console.warn("No message provided to AI generator"),[];let h=Se-((c=b?.length)!==null&&c!==void 0?c:0),y={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...b?[{role:"system",content:b}]:[],{role:"user",content:k.slice(0,h)}],temperature:r},R=JSON.stringify(y),g=yield l({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",R]}),O=JSON.parse(g.stdout);return(a=O?.choices.map(f=>{var T;return(T=f?.message)===null||T===void 0?void 0:T.content}).filter(f=>typeof f=="string").flatMap(f=>o?f.split(o).filter(T=>T.trim().length>0):[f]).map(f=>{if(i)return i(f);let T=f.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:T,insertValue:`'${T}'`,description:"Generated by Fig AI"}}))!==null&&a!==void 0?a:[]})}}L.ai=Re});var Z=q(v=>{"use strict";var je=v&&v.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),ke=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&je(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var X=z();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return X.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return X.folders}});ke(Q(),v);var Te=Y();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return Te.ai}})});var N=me(Z(),1),xe=e=>e.startsWith("warning:")||e.startsWith("error:")?e.split(`
1
+ var ce=Object.create;var W=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty;var x=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports);var he=(t,i,s,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of de(i))!ge.call(t,a)&&a!==s&&W(t,a,{get:()=>i[a],enumerable:!(n=le(i,a))||n.enumerable});return t};var fe=(t,i,s)=>(s=t!=null?ce(ue(t)):{},he(i||!t||!t.__esModule?W(s,"default",{value:t,enumerable:!0}):s,t));var V=x(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.shellExpand=j.ensureTrailingSlash=void 0;var be=t=>t.endsWith("/")?t:`${t}/`;j.ensureTrailingSlash=be;var ye=(t,i)=>t.startsWith("~")&&(t.length===1||t.charAt(1)==="/")?t.replace("~",i):t,we=(t,i)=>t.replace(/\$([A-Za-z0-9_]+)/g,a=>{var r;let m=a.slice(1);return(r=i[m])!==null&&r!==void 0?r:a}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(a,r,m)=>{var l,d;return(d=(l=i[r])!==null&&l!==void 0?l:m)!==null&&d!==void 0?d:a}),ve=(t,i)=>{var s;let{environmentVariables:n}=i;return we(ye(t,(s=n?.HOME)!==null&&s!==void 0?s:"~"),n)};j.shellExpand=ve});var B=x(O=>{"use strict";var Oe=O&&O.__awaiter||function(t,i,s,n){function a(r){return r instanceof s?r:new s(function(m){m(r)})}return new(s||(s=Promise))(function(r,m){function l(p){try{c(n.next(p))}catch(u){m(u)}}function d(p){try{c(n.throw(p))}catch(u){m(u)}}function c(p){p.done?r(p.value):a(p.value).then(l,d)}c((n=n.apply(t,i||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0});O.filepaths=O.folders=O.getCurrentInsertedDirectory=void 0;O.sortFilesAlphabetically=z;var L=V();function z(t,i=[]){let s=i.map(a=>a.toLowerCase()),n=t.filter(a=>!s.includes(a.toLowerCase()));return[...n.filter(a=>!a.startsWith(".")).sort((a,r)=>a.localeCompare(r)),...n.filter(a=>a.startsWith(".")).sort((a,r)=>a.localeCompare(r)),"../"]}var Re=(t,i,s)=>{if(t===null)return"/";let n=(0,L.shellExpand)(i,s),a=n.slice(0,n.lastIndexOf("/")+1);return a===""?(0,L.ensureTrailingSlash)(t):a.startsWith("/")?a:`${(0,L.ensureTrailingSlash)(t)}${a}`};O.getCurrentInsertedDirectory=Re;function J(t={}){let{extensions:i=[],equals:s=[],matches:n,filterFolders:a=!1,editFileSuggestions:r,editFolderSuggestions:m,rootDirectory:l,showFolders:d="always"}=t,c=new Set(i),p=new Set(s),u=()=>i.length>0||s.length>0||n,y=(h=[])=>u()?h.filter(({name:b="",type:R})=>{if(!a&&R==="folder"||p.has(b)||n&&b.match(n))return!0;let[,...g]=b.split(".");if(g.length>=1){let v=g.length-1,S=g[v];do{if(c.has(S))return!0;v-=1,S=[g[v],S].join(".")}while(v>=0)}return!1}):h,F=(h=[])=>!r&&!m?h:h.map(b=>Object.assign(Object.assign({},b),(b.type==="file"?r:m)||{}));return{trigger:(h,b)=>{let R=h.lastIndexOf("/"),g=b.lastIndexOf("/");return R!==g?!0:R===-1&&g===-1?!1:h.slice(0,R)!==b.slice(0,g)},getQueryTerm:h=>h.slice(h.lastIndexOf("/")+1),custom:(h,b,R)=>Oe(this,void 0,void 0,function*(){var g;let{isDangerous:v,currentWorkingDirectory:S,searchTerm:f}=R,k=(g=(0,O.getCurrentInsertedDirectory)(l??S,f,R))!==null&&g!==void 0?g:"/";try{let M=yield b({command:"ls",args:["-1ApL"],cwd:k}),pe=z(M.stdout.split(`
2
+ `),[".DS_Store"]),_=[];for(let C of pe)if(C){let E=C.endsWith("/")?"folders":"filepaths";(E==="filepaths"&&d!=="only"||E==="folders"&&d!=="never")&&_.push({type:E==="filepaths"?"file":"folder",name:C,insertValue:C,isDangerous:v,context:{templateType:E}})}return F(y(_))}catch{return[]}})}}O.folders=Object.assign(()=>J({showFolders:"only"}),Object.freeze(J({showFolders:"only"})));O.filepaths=Object.assign(J,Object.freeze(J()))});var Y=x(q=>{"use strict";var N=q&&q.__awaiter||function(t,i,s,n){function a(r){return r instanceof s?r:new s(function(m){m(r)})}return new(s||(s=Promise))(function(r,m){function l(p){try{c(n.next(p))}catch(u){m(u)}}function d(p){try{c(n.throw(p))}catch(u){m(u)}}function c(p){p.done?r(p.value):a(p.value).then(l,d)}c((n=n.apply(t,i||[])).next())})};Object.defineProperty(q,"__esModule",{value:!0});q.valueList=Se;q.keyValue=Fe;q.keyValueList=ke;var $=new Map;function P(t,i){return t.length===0?i:i.map(s=>s.insertValue?s:Object.assign(Object.assign({},s),{insertValue:s.name+t}))}function K(t,i,s){return N(this,void 0,void 0,function*(){if(typeof t=="function"){let n=yield t(...s);return P(i,n)}if(typeof t[0]=="string"){let n=t.map(a=>({name:a}));return P(i,n)}return P(i,t)})}function G(t,i,s,n){return N(this,void 0,void 0,function*(){if(s||Array.isArray(t)){let a=$.get(t);return a===void 0&&(a=yield K(t,i,n),$.set(t,a)),a}return K(t,i,n)})}function Q(t,i){return typeof i=="string"?t&&i==="keys"||!t&&i==="values":i}function T(t,...i){return Math.max(...i.map(s=>t.lastIndexOf(s)))}function D(t,i){let s=new Set(t);return i.filter(n=>{var a;return typeof n.name=="string"?!s.has(n.name):!(!((a=n.name)===null||a===void 0)&&a.some(r=>s.has(r)))})}function Se({delimiter:t=",",values:i=[],cache:s=!1,insertDelimiter:n=!1,allowRepeatedValues:a=!1}){return{trigger:(r,m)=>r.lastIndexOf(t)!==m.lastIndexOf(t),getQueryTerm:r=>r.slice(r.lastIndexOf(t)+t.length),custom:(...r)=>N(this,void 0,void 0,function*(){var m;let l=yield G(i,n?t:"",s,r);if(a)return l;let[d]=r,c=(m=d[d.length-1])===null||m===void 0?void 0:m.split(t);return D(c,l)})}}function Fe({separator:t="=",keys:i=[],values:s=[],cache:n=!1,insertSeparator:a=!0}){return{trigger:(r,m)=>r.indexOf(t)!==m.indexOf(t),getQueryTerm:r=>r.slice(r.indexOf(t)+1),custom:(...r)=>N(this,void 0,void 0,function*(){let[m]=r,d=!m[m.length-1].includes(t),c=d?i:s,p=Q(d,n);return G(c,d&&a?t:"",p,r)})}}function ke({separator:t="=",delimiter:i=",",keys:s=[],values:n=[],cache:a=!1,insertSeparator:r=!0,insertDelimiter:m=!1,allowRepeatedKeys:l=!1,allowRepeatedValues:d=!0}){return{trigger:(c,p)=>{let u=T(c,t,i),y=T(p,t,i);return u!==y},getQueryTerm:c=>{let p=T(c,t,i);return c.slice(p+1)},custom:(...c)=>N(this,void 0,void 0,function*(){let[p]=c,u=p[p.length-1],y=T(u,t,i),F=y===-1||u.slice(y,y+t.length)!==t,h=F?s:n,b=Q(F,a),g=yield G(h,F?r?t:"":m?i:"",b,c);if(F){if(l)return g;let S=u.split(i).map(f=>f.slice(0,f.indexOf(t)));return D(S,g)}if(d)return g;let v=u.split(i).map(S=>S.slice(S.indexOf(t)+t.length));return D(v,g)})}}});var X=x(A=>{"use strict";var qe=A&&A.__awaiter||function(t,i,s,n){function a(r){return r instanceof s?r:new s(function(m){m(r)})}return new(s||(s=Promise))(function(r,m){function l(p){try{c(n.next(p))}catch(u){m(u)}}function d(p){try{c(n.throw(p))}catch(u){m(u)}}function c(p){p.done?r(p.value):a(p.value).then(l,d)}c((n=n.apply(t,i||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.ai=Ce;var je=4097,xe=4,Ne=.8,Ae=je*xe*Ne;function Ce({name:t,prompt:i,message:s,postProcess:n,temperature:a,splitOn:r}){return{scriptTimeout:15e3,custom:(m,l,d)=>qe(this,void 0,void 0,function*(){var c,p;let u=yield l({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(u.stdout))return[];let y=typeof i=="function"?yield i({tokens:m,executeCommand:l,generatorContext:d}):i,F=typeof s=="function"?yield s({tokens:m,executeCommand:l,generatorContext:d}):s;if(F===null||F.length===0)return console.warn("No message provided to AI generator"),[];let h=Ae-((c=y?.length)!==null&&c!==void 0?c:0),b={model:"gpt-3.5-turbo",source:"autocomplete",name:t,messages:[...y?[{role:"system",content:y}]:[],{role:"user",content:F.slice(0,h)}],temperature:a},R=JSON.stringify(b),g=yield l({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",R]}),v=JSON.parse(g.stdout);return(p=v?.choices.map(f=>{var k;return(k=f?.message)===null||k===void 0?void 0:k.content}).filter(f=>typeof f=="string").flatMap(f=>r?f.split(r).filter(k=>k.trim().length>0):[f]).map(f=>{if(n)return n(f);let k=f.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:k,insertValue:`'${k}'`,description:"Generated by Fig AI"}}))!==null&&p!==void 0?p:[]})}}});var ee=x(w=>{"use strict";var Ee=w&&w.__createBinding||(Object.create?function(t,i,s,n){n===void 0&&(n=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(t,n,a)}:function(t,i,s,n){n===void 0&&(n=s),t[n]=i[s]}),Je=w&&w.__exportStar||function(t,i){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Ee(i,t,s)};Object.defineProperty(w,"__esModule",{value:!0});w.ai=w.folders=w.filepaths=void 0;var Z=B();Object.defineProperty(w,"filepaths",{enumerable:!0,get:function(){return Z.filepaths}});Object.defineProperty(w,"folders",{enumerable:!0,get:function(){return Z.folders}});Je(Y(),w);var Te=X();Object.defineProperty(w,"ai",{enumerable:!0,get:function(){return Te.ai}})});var o=fe(ee(),1),Le=t=>t.startsWith("warning:")||t.startsWith("error:")?t.split(`
3
3
  `).slice(1).join(`
4
- `):e,Ee=e=>{let t=xe(e);return t.startsWith("fatal:")?[]:t.split(`
5
- `).map(n=>{let i=n.trim().replace(/\w+\//,""),r=n.match(/\S+/g);if(r.length>1){if(r[0]==="*")return n.includes("HEAD detached")?{}:{name:n.replace("*","").trim(),description:"Current branch",priority:100,icon:"\u2B50\uFE0F"};r[0]==="+"&&(i=n.replace("+","").trim())}return{name:i,description:"Branch",icon:"fig://icon?type=git",priority:75}})},ee=e=>({name:e.nameWithOwner,description:e.description,icon:e.isPrivate?"\u{1F512}":"\u{1F440}"}),p={listCustomRepositories:{trigger:"/",custom:async(e,t)=>{let n=e.pop();if(!n)return[];let i=n.split("/");if(i.length===0)return[];let r=i.shift();if(!r)return[];let{stdout:o,status:s}=await t({command:"gh",args:["repo","list",r,"--limit","9999","--json","nameWithOwner,description,isPrivate"]});return s!==0?[]:JSON.parse(o).map(ee)}},listRepositories:{script:["gh","api","graphql","--paginate","-f","query='query($endCursor: String) { viewer { repositories(first: 100, after: $endCursor) { nodes { isPrivate, nameWithOwner, description } pageInfo { hasNextPage endCursor }}}}'","--jq",".data.viewer.repositories.nodes[]"],postProcess:e=>{if(e){let t=`[${e.replace(/(?:\r\n|\r|\n)/g,",")}]`;try{return JSON.parse(t).map(ee)}catch{return[]}}return[]}},listPR:{cache:{strategy:"stale-while-revalidate"},script:["gh","pr","list","--json=number,title,headRefName,state"],postProcess:e=>JSON.parse(e).map(n=>{let{number:i,title:r,headRefName:o,state:s}=n;return{name:i.toString(),displayName:r,description:`#${i} | ${o}`,icon:s==="OPEN"?"\u2705":"\u2611\uFE0F"}})},listAlias:{script:["gh","alias","list"],postProcess:e=>e.split(`
6
- `).map(n=>{let[i,r]=n.split(":");return{name:i.trim(),content:r.trim()}}).map(({name:n,content:i})=>({name:n,description:`Alias for '${i}'`,icon:"fig://icon?type=commandkey"}))},remoteBranches:{script:["git","--no-optional-locks","branch","-r","--no-color","--sort=-committerdate"],postProcess:Ee}},S={name:["-c","--codespace"],description:"Name of the codespace",args:{name:"string"}},m={clone:{name:"--clone",description:"Clone the fork {true|false}"},cloneGitFlags:{name:"--",description:"Flags to pass to git when cloning",priority:25,args:{name:"flags",description:"Flags to pass to git when cloning",isVariadic:!0}},confirm:{name:["-y","--confirm"],description:"Skip the confirmation prompt"},all:{name:["--repo","-R"],description:"Select another repository",args:{name:"[HOST/]OWNER/REPO"}},env:{name:["-e","--env"],description:"List secrets for an environment",args:{name:"string"}},org:{name:["-o","--org"],description:"List secrets for an environment",args:{name:"string"}}},Le={name:"gh",description:"GitHub's CLI tool",args:{name:"alias",description:"Custom user defined gh alias",isOptional:!0,generators:p.listAlias,parserDirectives:{alias:async(e,t)=>{let{stdout:n}=await t({command:"gh",args:["alias","list"]}),i=n.split(`
7
- `).find(r=>r.startsWith(`${e}: `));if(!i)throw new Error("Failed to parse alias");return i.slice(e.length+1).trim()}}},subcommands:[{name:"alias",description:"Create command shortcuts",subcommands:[{name:"delete",description:"Delete an alias",args:{name:"alias",generators:p.listAlias}},{name:"list",description:"List available aliases"},{name:"set",description:"Set an alias for a gh command",args:[{name:"alias",description:"A word that will expand to the gh command"},{name:"expansion",description:"The gh command to be invoked, more info with --help"}],options:[{name:["-s","--shell"],description:"Declare an alias to be passed through a shell interpreter"}]}]},{name:"api",description:"Make an authenticated GitHub API request"},{name:"auth",description:"Login, logout, and refresh your authentication",subcommands:[{name:"login",description:"Authenticate with a GitHub host",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}},{name:["-s","--scopes"],description:"Additional authentication scopes for gh to have",args:{name:"scopes"}},{name:["-w","--web"],description:"Open a browser to authenticate"},{name:"--with-token",description:"Read token from standard input",args:{name:"token"}}]},{name:"logout",description:"Log out of a GitHub host",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}}]},{name:"refresh",description:"Refresh stored authentication credentials",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}},{name:["-s","--scopes"],description:"Additional authentication scopes for gh to have",args:{name:"scopes"}}]},{name:"setup-git",description:"Configure git to use GitHub CLI as a credential helper",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}}]},{name:"status",description:"View authentication status",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}},{name:"--with-token",description:"Read token from standard input",args:{name:"token"}}]}]},{name:"gpg-key",description:"Manage GPG keys registered with your GitHub account",subcommands:[{name:"add",description:"Add a GPG key to your GitHub account"},{name:"list",description:"Lists GPG keys in your GitHub account"}]},{name:"browse",description:"Open the repository in the browser",args:{name:"[pr | issue | path[:line]",generators:p.listPR,suggestCurrentToken:!0},options:[{name:["-b","--branch"],description:"Select another branch by passing in the branch name",args:{name:"branch",generators:p.remoteBranches}},{name:["-c","--commit"],description:"Open the last commit"},{name:["-n","--no-browser"],description:"Print destination URL instead of opening the browser"},{name:["-p","--projects"],description:"Open repository projects"},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO"}},{name:["-s","--settings"],description:"Open repository settings"},{name:["-w","--wiki"],description:"Open repository wiki"}]},{name:"completion",description:"Generate shell completion scripts",options:[{name:["-s","--shell"],args:{name:"shell",suggestions:["bash","zsh","fish","powershell"]}}]},{name:"config",description:"Manage configuration for gh",subcommands:[{name:"get",description:"Print the value of a given configuration key",args:{name:"key",suggestions:["git_protocol","editor","prompt","pager","http_unix_socket"]},options:[{name:["-h","--host"],args:{name:"host"},description:"Get per-host setting"}]},{name:"set",description:"Update configuration with a value for the given key",subcommands:[{name:"git_protocol",description:"The protocol to use for git clone and push operations",args:{name:"option",suggestions:["https","ssh"]}},{name:"editor",description:"The text editor program to use for authoring text",args:{name:"editor",suggestions:["vim","nano"]}},{name:"prompt",description:"Toggle interactive prompting in the terminal",args:{name:"value",suggestions:["enable","disable"]}},{name:"pager",insertValue:"pager {cursor}",description:"The terminal pager program to send standard output to",args:{name:"value"}},{name:"http_unix_socket",description:"The path to a unix socket through which to make HTTP connection",args:{name:"path"}}],options:[{name:["-h","--host"],args:{name:"host"},description:"Get per-host setting"}]}]},{name:"extensions",description:"Manage gh extensions",subcommands:[{name:"create",description:"Create a new extension",args:{name:"name"}},{name:"install",description:"Install a gh extension from a repository",args:{name:"repo"}},{name:"list",description:"List installed extension commands"},{name:"remove",description:"Remove an installed extension",args:{name:"name"}},{name:"upgrade",description:"Upgrade installed extensions",options:[{name:"--all",description:"Upgrade all extensions"},{name:"--force",description:"Force upgrade extensions"}],args:{name:"name"}}]},{name:"gist",description:"Manage gists",subcommands:[{name:"clone",description:"Clone a gist locally",args:[{name:"gist",description:"Gist ID or URL"},{name:"directory",isOptional:!0,template:"folders"}]},{name:"create",description:"Create a new gist",args:{name:"filename",template:"filepaths"},options:[{name:["-d","--desc"],description:"A description for this gist",insertValue:"-d '{cursor}'",args:{name:"description"}},{name:["-f","--filename"],description:"Provide a filename to be used when reading from STDIN",args:{name:"filename",template:"filepaths"}},{name:["-p","--public"],description:"List the gist publicly (default: secret)"},{name:["-w","--web"],description:"Open the web browser with created gist"}]},{name:"delete",description:"Delete a gist",args:{name:"gist",description:"Gist ID or URL"}},{name:"edit",description:"Edit one of your gists",args:{name:"gist",description:"Gist ID or URL"},options:[{name:["-a","--add"],description:"Add a new file to the gist",args:{name:"filename",template:"filepaths"}},{name:["-f","--filename"],description:"Select a file to edit"}]},{name:"list",description:"List your gists",options:[{name:["-L","--limit"],displayName:"-L, --limit",description:"Maximum number of gists to fetch (default 10)",args:{name:"int"}},{name:"--public",description:"Show only public gists"},{name:"--secret",description:"Show only secret gists"}]},{name:"view",description:"View a gist",args:{name:"gist",description:"Gist ID or URL"},options:[{name:["-f","--filename"],description:"Display a single file from the gist"},{name:"--files",description:"List file names from the gist"},{name:["-r","--raw"],description:"Print raw instead of rendered gist contents"},{name:["-w","--web"],description:"Open gist in the browser"}]}]},{name:"issue",description:"Manage issues",subcommands:[{name:"close",description:"Close issue",args:{name:"issue",description:"Number or URL"},options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}}]},{name:"comment",description:"Create a new issue comment",args:{name:"issue",description:"Number or URL"},options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:["-b","--body"],insertValue:"-b '{cursor}'",description:"Supply a body. Will prompt for one otherwise",args:{name:"string"}},{name:["-F","--body-file"],description:"Read body text from file",args:{name:"file",template:"filepaths"}},{name:["-e","--editor"],description:"Add body using editor",args:{name:"editor"}},{name:["-w","--web"],description:"Add body in browser"}]},{name:"create",description:"Create a new issue",options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:["-a","--assignee"],description:'Assign people by their login. Use "@me" to self-assign',args:{name:"login"}},{name:["-b","--body"],insertValue:"-b '{cursor}'",description:"Supply a body. Will prompt for one otherwise",args:{name:"string"}},{name:["-F","--body-file"],description:"Read body text from file",args:{name:"file",template:"filepaths"}},{name:["-l","--label"],insertValue:"-l '{cursor}'",description:"Add labels by name",args:{name:"name"}},{name:["-m","--milestone"],description:"Add the issue to a milestone by name",args:{name:"name"}},{name:["-p","--project"],insertValue:"-p '{cursor}'",description:"Add the issue to projects by name",args:{name:"name"}},{name:"--recover",insertValue:"--recover '{cursor}'",description:"Recover input from a failed run of create",args:{name:"string"}},{name:["-t","--title"],description:"Supply a title. Will prompt for one otherwise",insertValue:"-t '{cursor}'",args:{name:"string"}},{name:["-w","--web"],description:"Open the browser to create an issue"}]},{name:"delete",description:"Delete issue",options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}}]},{name:"edit",description:"Edit an issue",args:{name:"issue",description:"Number or URL"},options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:"--add-assignee",description:'Add assigned users by their login. Use "@me" to assign yourself',args:{name:"login"}},{name:"--add-label",description:"Add labels by name",args:{name:"name"}},{name:["-b","--body"],insertValue:"-b '{cursor}'",description:"Set the new body",args:{name:"string"}},{name:["-F","--body-file"],description:"Read body text from file",args:{name:"file",template:"filepaths"}},{name:["-m","--milestone"],description:"Edit the milestone the issue belongs to by name",args:{name:"name"}},{name:"--remove-assignee",description:'Remove assigned users by their login. Use "@me" to unassign yourself',args:{name:"login"}},{name:"--remove-label",description:"Remove labels by name",args:{name:"name"}},{name:"--remove-project",description:"Remove the issue from projects by name",args:{name:"name"}},{name:["-t","--title"],description:"Set the new title",insertValue:"-t '{cursor}'",args:{name:"string"}}]},{name:"list",description:"List and filter issues in this repository",options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:["-a","--assignee"],description:"Filter by assignee",args:{name:"string"}},{name:["-A","--author"],description:"Filter by author",args:{name:"string"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-l","--label"],insertValue:"-l '{cursor}'",description:"Filter by labels",args:{name:"string"}},{name:["-L","--limit"],description:"Maximum number of issues to fetch (default 30)",args:{name:"int"}},{name:"--mention",description:"Filter by mention",args:{name:"string"}},{name:["-m","--milestone"],insertValue:"-m '{cursor}'",description:"Filter by milestone number or `title`",args:{name:"number",description:"Number or Title"}},{name:["-S","--search"],insertValue:"--search '{cursor}'",description:"Search issues with query",args:{name:"query"}},{name:["-s","--state"],description:'Filter by state (default "open")',args:{name:"state",suggestions:["open","closed","all"],default:"open",description:'(default "open")'}},{name:["-t","--template"],description:"Format JSON output using a Go template",args:{name:"string"}},{name:["-w","--web"],description:"Open the browser to list the issue(s)"}]},{name:"reopen",description:"Reopen issue",options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}}]},{name:"status",description:"Show status of relevant issues",options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-t","--template"],description:"Format JSON output using a Go template",args:{name:"string"}}]},{name:"transfer",description:"Transfer issue to another repository",args:[{name:"issue",description:"Number or URL"},{name:"destination-repo"}],options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}}]},{name:"view",description:"View an issue",args:{name:"issue",description:"Number or URL"},options:[{name:["-R","--repo"],insertValue:"-R '{cursor}'",description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"repo"}},{name:["-c","--comments"],description:"View issue comments"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-t","--template"],description:"Format JSON output using a Go template",args:{name:"string"}},{name:["-w","--web"],description:"Open an issue in the browser"}]}]},{name:"pr",description:"Manage pull requests",subcommands:[{name:"checkout",description:"Check out a pull request in git",args:{name:"number | url | branch",generators:p.listPR},options:[{name:"--recurse-submodules",description:"Update all active submodules (recursively)"}]},{name:"checks",description:"Show CI status for a single pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-w","--web"],description:"Open the web browser to show details about checks"}]},{name:"close",description:"Close a pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-d","--delete-branch"],description:"Delete the local and remote branch after close"}]},{name:"edit",description:"Edit a pull request. Without an argument, the pull request that belongs to the current branch is selected",args:{name:"number | url | branch",generators:p.listPR},options:[{name:"--add-assignee",description:'Add assigned users by their login. Use "@me" to assign yourself',args:{name:"login"}},{name:"--add-label",description:"Add labels by name",args:{name:"name"}},{name:"--add-project",description:"Add the pull request to projects by name",args:{name:"name"}},{name:"--add-reviewer",description:"Add reviewers by their login",args:{name:"login"}},{name:["-B","--base"],description:"Change the base branch for this pull request",args:{name:"branch"}},{name:["-b","--body"],description:"Set the new body",args:{name:"string"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file"}},{name:["-m","--milestone"],description:"Edit the milestone the pull request belongs to by name",args:{name:"name"}},{name:"--remove-assignee",description:'Remove assigned users by their login. Use "@me" to unassign yourself',args:{name:"login"}},{name:"--remove-label",description:"Remove labels by name",args:{name:"name"}},{name:"--remove-project",description:"Remove the pull request from projects by name",args:{name:"name"}},{name:"--remove-reviewer",description:"Remove reviewers by their login",args:{name:"login"}},{name:["-t","--title"],description:"Set the new title",args:{name:"string"}},m.all]},{name:"comment",description:"Create a new pr comment",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-b","--body"],insertValue:"-b '{cursor}'",description:"Supply a body. Will prompt for one otherwise",args:{name:"message"}},{name:["-e","--editor"],description:"Add body using editor"},{name:["-w","--web"],description:"Add body in browser"}]},{name:"create",description:"Create a pull request",options:[{name:["-a","--assignee"],description:"Assign people by their login",args:{name:"login"}},{name:["-B","--base"],description:"The branch into which you want your code merged",args:{name:"branch",generators:p.remoteBranches}},{name:["-b","--body"],insertValue:"-b '{cursor}'",description:"Body for the pull request",args:{name:"body"}},{name:["-d","--draft"],description:"Mark pull request as a draft"},{name:["-f","--fill"],description:"Do not prompt for title/body and just use commit info"},{name:["-H","--head"],description:"The branch that contains commits for your pull request (default: current branch)",args:{name:"branch"}},{name:["-l","--label"],description:"The branch that contains commits for your pull request (default: current branch)",args:{name:"branch"}},{name:["-m","--milestone"],description:"Add the pull request to a milestone by name",args:{name:"name"}},{name:"--no-maintainer-edit",description:"Disable maintainer's ability to modify pull request"},{name:["-p","--project"],description:"Add the pull request to projects by name",args:{name:"name"}},{name:"-recover",description:"Recover input from a failed run of create",args:{name:"string"}},{name:["-r","--reviewer"],description:"Request reviews from people or teams by their handle",args:{name:"handle"}},{name:["-t","--title"],description:"Title for the pull request",args:{name:"string"}},{name:["-w","--web"],description:"Open the web browser to create a pull request"}]},{name:"diff",description:"View changes in a pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:"--color",description:"Use color in diff output: {always|never|auto}",args:{name:"choice"}}]},{name:"list",description:"List and filter pull requests in this repository",options:[{name:["-a","--assignee"],description:"Filter by assignee",args:{name:"string"}},{name:["-B","--base"],description:"Filter by base branch",args:{name:"string"}},{name:["-l","--label"],description:"Filter by labels",args:{name:"string"}},{name:["-L","--limit"],description:"Maximum number of items to fetch",args:{name:"int"}},{name:["-s","--state"],description:"Filter by state: {open|closed|merged|all}",args:{name:"string"}},{name:["-w","--web"],description:"Open the browser to list the pull requests",args:{name:"string"}}]},{name:"merge",description:"Merge a pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-d","--delete-branch"],description:"Delete the local and remote branch after merge"},{name:["-m","--merge"],description:"Merge the commits with the base branch"},{name:["-r","--rebase"],description:"Rebase the commits onto the base branch"},{name:["-s","--squash"],description:"Squash the commits into one commit and merge it into the base branch"}]},{name:"ready",description:"Mark a pull request as ready for review",args:{name:"number | url | branch",generators:p.listPR}},{name:"reopen",description:"Reopen a pull request",args:{name:"number | url | branch",generators:p.listPR}},{name:"review",description:"Add a review to a pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-a","--approve"],description:"Approve pull request"},{name:["-b","--body"],description:"Specify the body of a review",args:{name:"string"}},{name:["-c","--comment"],description:"Comment on a pull request"},{name:["-r","--request-changes"],description:"Request changes on a pull request"}]},{name:"status",description:"Show status of relevant pull requests"},{name:"view",description:"View a pull request",args:{name:"number | url | branch",generators:p.listPR},options:[{name:["-c","--comments"],description:"View pull request comments"},{name:["-w","--web"],description:"Open a pull request in the browser"}]}]},{name:"release",description:"Manage GitHub releases"},{name:"repo",description:"Work with GitHub repositories",subcommands:[{name:"archive",description:"Archive a GitHub repository. With no argument, archives the current repository",isDangerous:!0,args:{name:"repository",generators:p.listRepositories,isOptional:!0},options:[m.confirm]},{name:"clone",description:`Clone a GitHub repository locally.
8
- If the "OWNER/" portion of the "OWNER/REPO" repository argument is omitted, it
9
- defaults to the name of the authenticating user.
10
- Pass additional 'git clone' flags by listing them after '--'`,args:[{name:"repository",generators:[p.listRepositories,p.listCustomRepositories]},{name:"directory",isOptional:!0}],options:[m.cloneGitFlags,{name:["-u","--upstream-remote-name"],description:'Upstream remote name when cloning a fork (default "upstream")',args:{name:"string"}}]},{name:"create",description:`Create a new GitHub repository.
11
- To create a repository interactively, use 'gh repo create' with no arguments.
12
- To create a remote repository non-interactively, supply the repository name and one of '--public', '--private', or '--internal'.
13
- Pass '--clone' to clone the new repository locally.
14
- To create a remote repository from an existing local repository, specify the source directory with '--source'.
15
- By default, the remote repository name will be the name of the source directory.
16
- Pass '--push' to push any local commits to the new repository`,args:{name:"name"},options:[m.confirm,{name:["-d","--description"],description:"Description of the repository",args:{name:"string"}},{name:["-h","--homepage"],description:"Repository home page URL",args:{name:"string"}},{name:"--public",description:"Make the repository public"},{name:"--private",description:"Make the repository private"},{name:"--internal",description:"Make the repository internal"},{name:["-p","--template"],description:"Make the new repository based on a template repository",args:{name:"string"}},{name:["-c","--clone"],description:"Clone the new repository to the current directory"},{name:"--disable-issues",description:"Disable issues in the new repository"},{name:"--disable-wiki",description:"Disable wiki in the new repository"},{name:["-g","--gitignore"],description:"Specify a gitignore template for the repository",args:{name:"string"}},{name:["-l","--license"],description:"Specify an Open Source License for the repository",args:{name:"string"}},{name:["-r","--remote"],description:"Specify remote name for the new repository",args:{name:"string"}},{name:["-s","--source"],description:"Specify path to local repository to use as source",args:{name:"string"}},{name:["-t","--team"],description:"The name of the organization team to be granted access",args:{name:"string"}},{name:"--include-all-branches",description:"Include all branches from template repository"},{name:"--push",description:"Push local commits to the new repository"},{name:"--add-readme",description:"Add a README file to the new repository"}]},{name:"deploy-key",description:"Manage deploy keys in a repository",subcommands:[{name:"add",description:"Add a deploy key to a GitHub repository",args:{name:"key-file",description:"Path to the public key file",template:"filepaths"},options:[{name:["-w","--allow-write"],description:"Allow write access for the key"},{name:["-t","--title"],description:"Title of the new key",args:{name:"string"}}]},{name:"delete",description:"Delete a deploy key from a GitHub repository",args:{name:"key-id",description:"ID of the key to delete"}},{name:"list",description:"List deploy keys in a GitHub repository"}],options:[{name:["-R","--repo"],description:"Select another repository using the `[HOST/]OWNER/REPO` format",args:{name:"[HOST/]OWNER/REPO"}}]},{name:"delete",description:`Delete a GitHub repository.
17
- With no argument, deletes the current repository. Otherwise, deletes the specified repository.
18
- Deletion requires authorization with the "delete_repo" scope.
19
- To authorize, run "gh auth refresh -s delete_repo"`,isDangerous:!0,args:{name:"repository",generators:p.listRepositories,isOptional:!0},options:[m.confirm]},{name:"edit",description:"Edit repository settings",args:{name:"repository",generators:p.listRepositories,isOptional:!0},options:[m.clone,{name:"--add-topic",description:"Add repository topic",args:{name:"topic names"}},{name:"--allow-forking",description:"Allow forking of an organization repository"},{name:"--default-branch",description:"Set the default branch name for the repository",args:{name:"branch name"}},{name:"--delete-branch-on-merge",description:"Delete head branch when pull requests are merged"},{name:["-d","--description"],description:"Description of the repository",args:{name:"description"}},{name:"--enable-auto-merge",description:"Enable auto-merge functionality"},{name:"--enable-issues",description:"Enable issues in the repository"},{name:"--enable-merge-commit",description:"Enable merging pull requests via merge commit"},{name:"--enable-projects",description:"Enable projects in the repository"},{name:"--enable-rebase-merge",description:"Enable merging pull requests via rebase"},{name:"--enable-squash-merge",description:"Enable merging pull requests via squashed commit"},{name:"--enable-wiki",description:"Enable wiki in the repository"},{name:["-h","--homepage"],description:"Repository home page URL",args:{name:"URL"}},{name:"--remove-topic",description:"Remove repository topic",args:{name:"topic names"}},{name:"--template",description:"Make the repository available as a template repository"},{name:"--visibility",description:"Change the visibility of the repository to {public,private,internal}",args:{name:"string",suggestions:["public","private","internal"]}}]},{name:"fork",description:`Create a fork of a repository.
20
- With no argument, creates a fork of the current repository. Otherwise, forks
21
- the specified repository.
22
- By default, the new fork is set to be your 'origin' remote and any existing
23
- origin remote is renamed to 'upstream'. To alter this behavior, you can set
24
- a name for the new fork's remote with --remote-name.
25
- Additional 'git clone' flags can be passed in by listing them after '--'`,args:{name:"repository",generators:[p.listRepositories,p.listCustomRepositories]},options:[m.cloneGitFlags,{name:"--clone",description:"Clone the fork"},{name:"--remote",description:"Add remote for fork {true|false}"},{name:"--remote-name",description:`Specify a name for a fork's new remote. (default "origin")`,args:{name:"string"}},{name:"--org",description:"Create the fork in an organization",args:{name:"string"}},{name:"--fork-name",description:"Rename the forked repository",args:{name:"string"}}]},{name:"list",description:`List repositories owned by user or organization.
26
- For more information about output formatting flags, see 'gh help formatting'`,args:{name:"owner",isOptional:!0},options:[{name:"--visibility",description:"Filter repositories by visibility",args:{name:"visibility",suggestions:["public","private","internal"]}},{name:"--archived",description:"Show only archived repositories"},{name:"--fork",description:"Show only forked repositories"},{name:["-l","--language"],description:"Filter by primary coding language"},{name:["-L","--limit"],description:"Maximum number of repositories to list (default 30)",args:{name:"string"}},{name:"--no-archived",description:"Omit archived repositories"},{name:"--source",description:"Show only non-forks"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression"},{name:"--json",description:"Output JSON with the specified fields"},{name:["-t","--template"],description:"Format JSON output using a Go template"},{name:"--topic",description:"Filter by topic",args:{name:"topic"}},{name:"--private",description:"Show only private repositories",deprecated:!0},{name:"--public",description:"Show only public repositories",deprecated:!0}]},{name:"rename",description:`Rename a GitHub repository.
27
- By default, this renames the current repository; otherwise renames the specified repository`,args:{name:"new-name",isOptional:!0},options:[m.confirm,m.all,{name:["-R","--repo"],description:"Select another repository using the `[HOST/]OWNER/REPO` format",args:{name:"[HOST/]OWNER/REPO"}}]},{name:"set-default",description:"Sets the default remote repository to use when querying the GitHub API for the locally cloned repository",args:{name:"repository",isOptional:!0,generators:[p.listRepositories,p.listCustomRepositories]},options:[{name:["-u","--unset"],description:"Unset the current default repository"},{name:["-v","--view"],description:"View the current default repository"}]},{name:"sync",description:`Sync destination repository from source repository. Syncing uses the main branch
28
- of the source repository to update the matching branch on the destination
29
- repository so they are equal. A fast forward update will be used execept when the
30
- '--force' flag is specified, then the two branches will
31
- by synced using a hard reset.
32
- Without an argument, the local repository is selected as the destination repository.
33
- The source repository is the parent of the destination repository by default.
34
- This can be overridden with the '--source' flag`,args:{name:"destination-repository",isOptional:!0},options:[{name:["-b","--branch"],description:"Branch to sync",args:{name:"branch name",default:"main"}},{name:"--force",description:"Hard reset the branch of the destination repository to match the source repository"},{name:["-s","--source"],description:"Source repository",args:{name:"source repository"}}]},{name:"view",description:`Display the description and the README of a GitHub repository.
35
- With no argument, the repository for the current directory is displayed.
36
- With '--web', open the repository in a web browser instead.
37
- With '--branch', view a specific branch of the repository.
38
- For more information about output formatting flags, see 'gh help formatting'`,args:{name:"repository",isOptional:!0,generators:[p.listRepositories,p.listCustomRepositories]},options:[{name:["-b","--branch"],description:"View a specific branch of the repository",args:{name:"string"}},{name:["-w","--web"],description:"Open a repository in the browser"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-t","--template"],description:"Format JSON output using a Go template",args:{name:"string"}}]}]},{name:"run",description:"View details about workflow runs",options:[m.all],subcommands:[{name:"download",description:"Download artifacts generated by a workflow run",args:{name:"run-id"}},{name:"list",description:"List recent workflow runs",options:[m.all,{name:["-L","--limit"],description:"Maximum number of runs to fetch (default 20)",args:{name:"int"}},{name:["-w","--workflow"],description:"Filter runs by workflow",args:{name:"string"}}]},{name:"rerun",description:"Rerun a failed run",options:[m.all],args:{name:"run-id"}},{name:"view",description:"View a summary of a workflow run",options:[m.all,{name:"--exit-status",description:"Exit with non-zero status if run failed"},{name:["-j","--job"],description:"View a specific job ID from a run",args:{name:"string"}},{name:"--log",description:"View full log for either a run or specific job"},{name:"--log-failed",description:"View the log for any failed steps in a run or specific job"},{name:["-v","--verbose"],description:"Show job steps"},{name:["-w","--web"],description:"Open run in the browser"}],args:{name:"run-id"}},{name:"watch",description:"Watch a run until it completes, showing its progress",options:[m.all,{name:"--exit-status",description:"Exit with non-zero status if run fails"},{name:["-i","--interval"],description:"Refresh interval in seconds (default 3)",args:{name:"int"}}]}]},{name:"secret",description:"Manage GitHub secrets",options:[m.all],subcommands:[{name:"list",description:"List secrets for a repository, environment, or organization",options:[m.all,{name:["-e","--env"],description:"List secrets for an environment",args:{name:"string"}},{name:["-o","--org"],description:"List secrets for an environment",args:{name:"string"}}]},{name:"remove",description:"Remove secrets",options:[m.all,m.env,m.org]},{name:"set",description:"Create or update secrets",options:[m.all,m.env,m.org,{name:["-b","--body"],description:"A value for the secret. Reads from STDIN if not specified",args:{name:"string"}},{name:["-v","--visibility"],description:"Set visibility for an organization secret: all, `private`, or `selected` (default 'private')",args:{name:"string",suggestions:[{name:"private"},{name:"selected"},{name:"all"}]}}]}]},{name:"ssh-key",description:"Manage SSH keys",subcommands:[{name:"add",description:"Add an SSH key to your GitHub account",options:[m.all,{name:["-t","--title"],description:"Title for the new key"}],args:{name:"<key-file>",template:"filepaths"}},{name:"list",description:"Lists SSH keys in your GitHub account",options:[m.all]}]},{name:"workflow",description:"View details about GitHub Actions workflows",options:[m.all],subcommands:[{name:"disable",description:"Disable a workflow",options:[m.all],args:{name:"[<workflow-id> | <workflow-name>]"}},{name:"enable",description:"Enable a workflow",options:[m.all],args:{name:"[<workflow-id> | <workflow-name>]"}},{name:"list",description:"List workflows",options:[m.all,{name:["-a","--all"],description:"Show all workflows, including disabled workflows"},{name:["-L","--limit"],description:"Show all workflows, including disabled workflows",args:{name:"int",description:"Maximum number of workflows to fetch (default 50)"}}],args:{name:"[<workflow-id> | <workflow-name>]"}},{name:"run",description:"Run a workflow by creating a workflow_dispatch event",options:[m.all,{name:["-F","--field"],description:"Add a string parameter in key=value format, respecting @ syntax",args:{name:"key=value"}},{name:"--json",description:"Read workflow inputs as JSON via STDIN"},{name:["-f","--raw-field"],description:"Add a string parameter in key=value format",args:{name:"key=value"}},{name:["-r","--ref"],description:"The branch or tag name which contains the version of the workflow file you'd like to run",args:{name:"string"}}],args:{name:"[<workflow-id> | <workflow-name>]"}},{name:"view",description:"View the summary of a workflow",options:[m.all,{name:["-r","--ref"],description:"The branch or tag name which contains the version of the workflow file you'd like to view",args:{name:"string"}},{name:["-w","--web"],description:"Open workflow in the browser"},{name:["-y","--yaml"],description:"View the workflow yaml file"}],args:[{name:"workflow-id"},{name:"workflow-name"},{name:"filename",template:"filepaths"}]}]},{name:["codespace","cs"],description:"Connect to and manage codespaces",subcommands:[{name:"code",description:"Open a codespace in Visual Studio Code",options:[S,{name:"--insiders",description:"Use the insiders version of Visual Studio Code"},{name:["-w","--web"],description:"Use the web version of Visual Studio Code"}]},{name:"cp",description:"The cp command copies files between the local and remote file systems",options:[S,{name:["-e","--expand"],description:"Expand remote file names on remote shell"},{name:["-p","--profile"],description:"Name of the SSH profile to use",args:{name:"string"}},{name:["-r","--recursive"],description:"Recursively copy directories"}],args:[{name:"sources",isVariadic:!0},{name:"dest"}]},{name:"create",description:"Create a codespace",options:[{name:["-b","--branch"],description:"Repository branch"},{name:"--default-permissions",description:"Do not prompt to accept additional permissions requested by the codespace"},{name:"--devcontainer-path",description:"Path to the devcontainer.json file to use when creating codespace",args:{generators:(0,N.filepaths)({extensions:["json"]})}},{name:["-d","--display-name"],description:"Display name for the codespace",args:{name:"string"}},{name:"--idle-timeout",description:"Allowed inactivity before codespace is stopped",args:{name:"duration",description:"Example: '10m', '1h'"}},{name:["-l","--location"],description:"Determined automatically if not provided",args:{name:"location",suggestions:["EastUs","SouthEastAsia","WestEurope","WestUs2"]}},{name:["-m","--machine"],description:"Hardware specifications for the VM",args:{name:"string"}},{name:["-R","--repo"],description:"Repository name with owner: user/repo",args:{name:"string"}},{name:"--retention-period",description:"Allowed time after shutting down before the codespace is automatically deleted (maximum 30 days)",args:{name:"duration",description:"Example: '10m', '1h'"}},{name:["-s","--status"],description:"Show status of post-create command and dotfiles"}]},{name:"delete",description:"Delete codespaces based on selection criteria. All codespaces for the authenticated user can be deleted, as well as codespaces for a specific repository. Alternatively, only codespaces older than N days can be deleted. Organization administrators may delete any codespace billed to the organization",options:[S,{name:"--all",description:"Delete all codespaces"},{name:"--days",description:"Delete codespaces older than N days",args:{name:"N days"}},{name:["-f","--force"],description:"Skip confirmation for codespaces that contain unsaved changes",isDangerous:!0},{name:["-o","--org"],description:"The login handle of the organization (admin-only)",args:{name:"login"}},{name:["-r","--repo"],description:"Delete codespaces for a repository",args:{name:"repository"}},{name:["-u","--user"],description:"The username to delete codespaces for",args:{name:"username"}}]},{name:"edit",description:"Edit a codespace",options:[S,{name:["-d","--display-name"],description:"Set the display name",args:{name:"string"}},{name:["-m","--machine"],description:"Set hardware specifications for the VM",args:{name:"string"}}]},{name:"jupyter",description:"Open a codespace in JupyterLab",options:[S]},{name:"list",description:"List codespaces of the authenticated user. Alternatively, organization administrators may list all codespaces billed to the organization",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-L","--limit"],description:"Maximum number of codespaces to list",args:{name:"int",default:"30"}},{name:["-o","--org"],description:"The login handle of the organization to list codespaces for (admin-only)",args:{name:"login"}},{name:["-R","--repo"],description:"Repository name with owner: user/repo",args:{name:"string"}},{name:["-t","--template"],description:"Format JSON output using a Go template; see 'gh help formatting'",args:{name:"string"}},{name:["-u","--user"],description:"The username to list codespaces for",args:{name:"string"}}]},{name:"logs",description:"Access codespace logs",options:[S,{name:["-f","--follow"],description:"Tail and follow the logs"}]},{name:"ports",description:"List ports in a codespace",subcommands:[{name:"forward",description:"Forward ports",options:[S],args:{generators:(0,N.keyValue)({separator:":",cache:!0}),isVariadic:!0}},{name:"visibility",description:"Change the visibility of the forwarded port",options:[S],args:{generators:(0,N.keyValue)({separator:":",values:["public","private","org"],cache:!0}),isVariadic:!0}}],options:[S,{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields"}},{name:["-t","--template"],description:"Format JSON output using a Go template; see 'gh help formatting'",args:{name:"string"}}]},{name:"rebuild",description:"Rebuild a codespace",options:[S]},{name:"ssh",description:"SSH into a codespace",options:[S,{name:"--config",description:"Write OpenSSH configuration to stdout"},{name:["-d","--debug"],description:"Log debug data to a file"},{name:"--debug-file",description:"Path of the file log to",args:{name:"file",template:"filepaths",suggestCurrentToken:!0}},{name:"--profile",description:"Name of the SSH profile to use",args:{name:"string"}},{name:"--server-port",description:"SSH server port number (0 => pick unused)",args:{name:"int"}}],args:{name:"command",isCommand:!0,isOptional:!0}},{name:"stop",description:"Stop running a codespace",options:[S,{name:["-o","--org"],description:"The login handle of the organization (admin-only)",args:{name:"login"}},{name:["-u","--user"],description:"The username to delete codespaces for",args:{name:"username"}}]}]},{name:"project",description:"Manage projects",subcommands:[{name:"create",description:"Create a project",options:[{name:"--title",description:"Title for the project",args:{name:"title"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"body"}}]},{name:"edit",description:"Edit a project",options:[{name:"--title",description:"New title of the project",args:{name:"title"}},{name:["-d","--description"],description:"New description of the project",args:{name:"description"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--readme",description:"New readme for the project",args:{name:"readme"}},{name:"--visibility",description:"Change project visibility",args:{name:"visibility",suggestions:["PUBLIC","PRIVATE"]}}]},{name:"list",description:"List projects",options:[{name:"--closed",description:"Include closed projects",args:{name:"closed"}},{name:"--owner",description:"Login of the owner",args:{name:"owner"}},{name:["-L","--limit"],description:"Maximum number of projects to fetch",args:{name:"int",default:"30"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--web",description:"Open projects list in the browser"}]},{name:"delete",description:"Delete a project",options:[{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}}]},{name:"close",description:"Close a project",options:[{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--undo",description:"Reopen a closed project"}]},{name:"view",description:"View a project",options:[{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:["-w","--web"],description:"Open project in the browser"}]},{name:"copy",description:"Copy a project",options:[{name:"--title",description:"Title for the new project",args:{name:"title"}},{name:"--target-owner",description:"Login of the target owner. Use @me for the current user",args:{name:"target-owner"}},{name:"--source-owner",description:"Login of the source owner. Use @me for the current user",args:{name:"source-owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--drafts",description:"Include draft issues when copying"}]},{name:"field-create",description:"Create a project field",options:[{name:"--name",description:"Name of the field",args:{name:"name"}},{name:"--data-type",description:"DataType of the new field",args:{name:"data-type",suggestions:["TEXT","SINGLE_SELECT","DATE","NUMBER"]}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--single-select-options",description:"Options for SINGLE_SELECT data type",args:{name:"single-select-options"}}]},{name:"field-delete",description:"Delete a project field",options:[{name:"--id",description:"ID of the field to delete",args:{name:"id"}},{name:"--format",description:"Output format: {json}"}]},{name:"field-list",description:"List project fields",options:[{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}"},{name:["-L","--limit"],description:"Maximum number of fields to fetch",args:{name:"int",default:"30"}}]},{name:"item-create",description:"Create a draft issue item in a project",options:[{name:"--title",description:"Title for the draft issue",args:{name:"title"}},{name:"--body",description:"Body for the draft issue",args:{name:"body"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}}]},{name:"item-edit",description:"Edit a project item",options:[{name:"--id",description:"ID of the item to edit",args:{name:"id"}},{name:"--project-id",description:"ID of the project to which the field belongs to",args:{name:"project-id"}},{name:"--title",description:"Title of the draft issue item",args:{name:"title"}},{name:"--body",description:"Body of the draft issue item",args:{name:"body"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--field-id",description:"ID of the field to update",args:{name:"field-id"}},{name:"--iteration-id",description:"ID of the iteration value to set on the field",args:{name:"iteration-id"}},{name:"--text",description:"Text value for the field",args:{name:"text"}},{name:"--number",description:"Number value for the field",args:{name:"number"}},{name:"--single-select-option-id",description:"ID of the single select option value to set on the field",args:{name:"single-select-option-id"}},{name:"--date",description:"Date value for the field (YYYY-MM-DD)",args:{name:"date"}}]},{name:"item-delete",description:"Delete a project item",options:[{name:"--id",description:"ID of the item to delete",args:{name:"id"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}}]},{name:"item-list",description:"List project items",options:[{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:["-L","--limit"],description:"Maximum number of items to fetch",args:{name:"int",default:"30"}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}}]},{name:"item-add",description:"Add a pull request or an issue to a project",options:[{name:"--url",description:"URL of the issue or pull request to add to the project",args:{name:"url"}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}}]},{name:"item-archive",description:"Archive a project item",options:[{name:"--id",description:"ID of the item to archive",args:{name:"id"}},{name:"--format",description:"Output format: {json}",args:{name:"format"}},{name:"--owner",description:"Login of the owner. Use @me for the current user",args:{name:"owner"}},{name:"--undo",description:"Unarchive a project item"}]}]}],options:[{name:"--help",description:"Show help for command",isPersistent:!0}]},_e=Le;export{_e as default};
4
+ `):t,Pe=t=>{let i=Le(t);return i.startsWith("fatal:")?[]:i.split(`
5
+ `).map(s=>{let n=s.trim().replace(/\w+\//,""),a=s.match(/\S+/g);if(a.length>1){if(a[0]==="*")return s.includes("HEAD detached")?{}:{name:s.replace("*","").trim(),description:"Current branch",priority:100,icon:"\u2B50\uFE0F"};a[0]==="+"&&(n=s.replace("+","").trim())}return{name:n,description:"Branch",icon:"fig://icon?type=git",priority:75}})},te=t=>({name:t.nameWithOwner,description:t.description,icon:t.isPrivate?"\u{1F512}":"\u{1F440}"}),e={listCustomRepositories:{trigger:"/",custom:async(t,i)=>{let s=t.pop();if(!s)return[];let n=s.split("/");if(n.length===0)return[];let a=n.shift();if(!a)return[];let{stdout:r,status:m}=await i({command:"gh",args:["repo","list",a,"--limit","9999","--json","nameWithOwner,description,isPrivate"]});return m!==0?[]:JSON.parse(r).map(te)}},listRepositories:{script:["gh","api","graphql","--paginate","-f","query='query($endCursor: String) { viewer { repositories(first: 100, after: $endCursor) { nodes { isPrivate, nameWithOwner, description } pageInfo { hasNextPage endCursor }}}}'","--jq",".data.viewer.repositories.nodes[]"],postProcess:t=>{if(t){let i=`[${t.replace(/(?:\r\n|\r|\n)/g,",")}]`;try{return JSON.parse(i).map(te)}catch{return[]}}return[]}},listPR:{cache:{strategy:"stale-while-revalidate"},script:["gh","pr","list","--json=number,title,headRefName,state"],postProcess:t=>JSON.parse(t).map(s=>{let{number:n,title:a,headRefName:r,state:m}=s;return{name:n.toString(),displayName:a,description:`#${n} | ${r}`,icon:m==="OPEN"?"\u2705":"\u2611\uFE0F"}})},listIssue:{cache:{strategy:"stale-while-revalidate"},script:["gh","issue","list","--json=number,title,state"],postProcess:t=>JSON.parse(t).map(({number:s,title:n,state:a})=>({name:s.toString(),displayName:n,description:`#${s}`,icon:a==="OPEN"?"\u2705":"\u2611\uFE0F"}))},listAlias:{script:["gh","alias","list"],postProcess:t=>t.split(`
6
+ `).map(s=>{let[n,a]=s.split(":");return{name:n.trim(),content:a.trim()}}).map(({name:s,content:n})=>({name:s,description:`Alias for '${n}'`,icon:"fig://icon?type=commandkey"}))},remoteBranches:{script:["git","--no-optional-locks","branch","-r","--no-color","--sort=-committerdate"],postProcess:Pe}},H={name:"--",description:"Flags to pass to git when cloning",priority:25,args:{name:"flags",description:"Flags to pass to git when cloning",isVariadic:!0}},De={name:"alias",description:"Custom user defined gh alias",isOptional:!0,generators:e.listAlias,parserDirectives:{alias:async(t,i)=>{let{stdout:s}=await i({command:"gh",args:["alias","list"]}),n=s.split(`
7
+ `).find(a=>a.startsWith(`${t}: `));if(!n)throw new Error("Failed to parse alias");return n.slice(t.length+1).trim()}}},ie=["completedAt","createdAt","id","name","pullRequestNumber","pullRequestState","pullRequestTitle","pullRequestUrl","repository","state","updatedAt","user"],Ge=["hosts"],He=["createdAt","id","key","lastAccessedAt","ref","sizeInBytes","version"],Ie=["createdAt","displayName","gitStatus","lastUsedAt","machineName","name","owner","repository","state","vscsTarget"],Ue=["browseUrl","label","sourcePort","visibility"],Me=["billableOwner","createdAt","devcontainerPath","displayName","environmentId","gitStatus","idleTimeoutMinutes","lastUsedAt","location","machineDisplayName","machineName","name","owner","prebuild","recentFolders","repository","retentionExpiresAt","retentionPeriodDays","state","vscsTarget"],se=[{name:"api_host",description:"Experimental: the hostname to use when making API requests for a GitHub host. Note: this is not a security boundary and requests to the canonical host will remain authenticated"},{name:"git_protocol",description:"The protocol to use for git clone and push operations"},{name:"editor",description:"The text editor program to use for authoring text"},{name:"prompt",description:"Toggle interactive prompting in the terminal"},{name:"prefer_editor_prompt",description:"Toggle preference for editor-based interactive prompting in the terminal"},{name:"expiring_credentials",description:"Toggle preference for expiring credentials that gh refreshes automatically when logging in"},{name:"pager",description:"The terminal pager program to send standard output to"},{name:"http_unix_socket",description:"The path to a Unix socket through which to make an HTTP connection"},{name:"browser",description:"The web browser to use for opening URLs"},{name:"clipboard",description:"Whether to copy one-time OAuth device codes to the clipboard"},{name:"color_labels",description:"Whether to display labels using their RGB hex color codes in terminals that support truecolor"},{name:"accessible_colors",description:"Whether customizable, 4-bit accessible colors should be used"},{name:"accessible_prompter",description:"Whether an accessible prompter should be used"},{name:"spinner",description:"Whether to use an animated spinner as a progress indicator"},{name:"telemetry",description:"Whether telemetry is enabled, disabled, or logging"}],_e=["answerChosenAt","answerChosenBy","answered","author","body","category","closed","closedAt","createdAt","id","labels","locked","number","stateReason","title","updatedAt","url"],We=["answerChosenAt","answerChosenBy","answered","author","body","category","closed","closedAt","comments","createdAt","id","labels","locked","number","reactionGroups","state","stateReason","title","updatedAt","url"],ne=["createdAt","defaultBranch","description","forksCount","fullName","hasDownloads","hasIssues","hasPages","hasProjects","hasWiki","homepage","id","isArchived","isDisabled","isFork","isPrivate","language","license","name","openIssuesCount","owner","pushedAt","size","stargazersCount","updatedAt","url","visibility","watchersCount"],Ve=["body","bodyHtml","createdAt","creator","description","id","name","number","type","updatedAt","updatedByActor","url"],ze=["body","bodyHtml","createdAt","creator","description","id","name","number","type","updatedAt","updatedByActor","url","versions"],I=["assignees","author","blockedBy","blocking","body","closed","closedAt","closedByPullRequestsReferences","comments","createdAt","id","isPinned","issueType","labels","milestone","number","parent","projectCards","projectItems","reactionGroups","state","stateReason","subIssues","subIssuesSummary","title","updatedAt","url"],Be=["color","createdAt","description","id","isDefault","name","updatedAt","url"],$e=["bucket","completedAt","description","event","link","name","startedAt","state","workflow"],U=["additions","assignees","author","autoMergeRequest","baseRefName","baseRefOid","body","changedFiles","closed","closedAt","closingIssuesReferences","comments","commits","createdAt","deletions","files","fullDatabaseId","headRefName","headRefOid","headRepository","headRepositoryOwner","id","isCrossRepository","isDraft","labels","latestReviews","maintainerCanModify","mergeCommit","mergeStateStatus","mergeable","mergedAt","mergedBy","milestone","number","potentialMergeCommit","projectCards","projectItems","reactionGroups","reviewDecision","reviewRequests","reviews","state","statusCheckRollup","title","updatedAt","url"],Ke=["createdAt","isDraft","isImmutable","isLatest","isPrerelease","name","publishedAt","tagName"],Qe=["apiUrl","assets","author","body","createdAt","databaseId","id","isDraft","isImmutable","isPrerelease","name","publishedAt","tagName","tarballUrl","targetCommitish","uploadUrl","url","zipballUrl"],ae=["id","isAlphanumeric","keyPrefix","urlTemplate"],Ye=["createdAt","id","key","readOnly","title"],re=["archivedAt","assignableUsers","codeOfConduct","contactLinks","createdAt","defaultBranchRef","deleteBranchOnMerge","description","diskUsage","forkCount","fundingLinks","hasDiscussionsEnabled","hasIssuesEnabled","hasProjectsEnabled","hasWikiEnabled","homepageUrl","id","isArchived","isBlankIssuesEnabled","isEmpty","isFork","isInOrganization","isMirror","isPrivate","isSecurityPolicyEnabled","isTemplate","isUserConfigurationRepository","issueTemplates","issues","labels","languages","latestRelease","licenseInfo","mentionableUsers","mergeCommitAllowed","milestones","mirrorUrl","name","nameWithOwner","openGraphImageUrl","owner","parent","primaryLanguage","projects","projectsV2","pullRequestTemplates","pullRequests","pushedAt","rebaseMergeAllowed","repositoryTopics","securityPolicyUrl","squashMergeAllowed","sshUrl","stargazerCount","templateRepository","updatedAt","url","usesCustomOpenGraphImage","viewerCanAdminister","viewerDefaultCommitEmail","viewerDefaultMergeMethod","viewerHasStarred","viewerPermission","viewerPossibleCommitEmails","viewerSubscription","visibility","watchers"],Xe=["gitSHA","gitType","mode","modeOctal","name","nameRaw","path","pathRaw","size","submodule","type"],Ze=["content","downloadUrl","encoding","gitSHA","gitUrl","htmlUrl","name","path","size","type","url"],et=["attempt","conclusion","createdAt","databaseId","displayTitle","event","headBranch","headSha","name","number","startedAt","status","updatedAt","url","workflowDatabaseId","workflowName"],tt=["attempt","conclusion","createdAt","databaseId","displayTitle","event","headBranch","headSha","jobs","name","number","startedAt","status","updatedAt","url","workflowDatabaseId","workflowName"],it=["path","repository","sha","textMatches","url"],st=["author","commit","committer","id","parents","repository","sha","url"],nt=["assignees","author","authorAssociation","body","closedAt","commentsCount","createdAt","id","isLocked","isPullRequest","labels","number","repository","state","title","updatedAt","url"],at=["assignees","author","authorAssociation","body","closedAt","commentsCount","createdAt","id","isDraft","isLocked","isPullRequest","labels","number","repository","state","title","updatedAt","url"],rt=["name","numSelectedRepos","selectedReposURL","updatedAt","visibility"],oe=[{name:"github-copilot",description:"GitHub Copilot"},{name:"claude-code",description:"Claude Code"},{name:"cursor",description:"Cursor"},{name:"codex",description:"Codex"},{name:"gemini-cli",description:"Gemini CLI"},{name:"antigravity",description:"Antigravity"},{name:"antigravity-cli",description:"Antigravity CLI"},{name:"antigravity2.0",description:"Antigravity 2.0"},{name:"adal",description:"AdaL"},{name:"amp",description:"Amp"},{name:"augment",description:"Augment"},{name:"bob",description:"IBM Bob"},{name:"cline",description:"Cline"},{name:"codebuddy",description:"CodeBuddy"},{name:"command-code",description:"Command Code"},{name:"continue",description:"Continue"},{name:"cortex",description:"Cortex Code"},{name:"crush",description:"Crush"},{name:"deepagents",description:"Deep Agents"},{name:"devin",description:"Devin"},{name:"droid",description:"Droid"},{name:"firebender",description:"Firebender"},{name:"goose",description:"Goose"},{name:"grok",description:"Grok"},{name:"iflow-cli"},{name:"junie",description:"Junie"},{name:"kilo",description:"Kilo Code"},{name:"kimi-cli",description:"Kimi Code CLI"},{name:"kiro-cli",description:"Kiro CLI"},{name:"kode",description:"Kode"},{name:"mcpjam",description:"MCPJam"},{name:"mistral-vibe",description:"Mistral Vibe"},{name:"mux",description:"Mux"},{name:"neovate",description:"Neovate"},{name:"openclaw",description:"OpenClaw"},{name:"opencode",description:"OpenCode"},{name:"openhands",description:"OpenHands"},{name:"pi",description:"Pi"},{name:"pochi",description:"Pochi"},{name:"qoder",description:"Qoder"},{name:"qwen-code",description:"Qwen Code"},{name:"replit",description:"Replit"},{name:"roo",description:"Roo Code"},{name:"trae",description:"Trae"},{name:"trae-cn",description:"Trae CN"},{name:"universal",description:"Universal"},{name:"warp",description:"Warp"},{name:"zencoder",description:"Zencoder"}],ot=["agentHosts","path","pinned","scope","skillName","sourceURL","version"],mt=["description","namespace","path","repo","skillName","stars"],me=["createdAt","name","numSelectedRepos","selectedReposURL","updatedAt","value","visibility"],pt=["id","name","path","state"],ct={name:"gh",description:"Work seamlessly with GitHub from the command line",args:De,subcommands:[{name:["agent-task","agent-tasks","agent","agents"],description:"Work with agent tasks (preview)",subcommands:[{name:"create",description:"Create an agent task (preview)",args:{name:"task description",isOptional:!0},options:[{name:["-b","--base"],description:"Base branch for the pull request (use default branch if not provided)",args:{name:"base"}},{name:["-a","--custom-agent"],description:"Use a custom agent for the task. e.g., use 'my-agent' for the 'my-agent.md' agent",args:{name:"custom-agent"}},{name:"--follow",description:"Follow agent session logs"},{name:["-F","--from-file"],description:'Read task description from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}}]},{name:"list",description:"List agent tasks (preview)",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ie})}},{name:["-L","--limit"],description:"Maximum number of agent tasks to fetch",args:{name:"int",default:"30"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open agent tasks in the browser"}]},{name:"view",description:"View an agent task session (preview)",args:{name:"session-id | pr-number | pr-url | pr-branch",isOptional:!0},options:[{name:"--follow",description:"Follow agent session logs"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ie})}},{name:"--log",description:"Show agent session logs"},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open agent task in the browser"}]}]},{name:"alias",description:"Create command shortcuts",subcommands:[{name:"delete",description:"Delete set aliases",isDangerous:!0,args:{name:"alias",isOptional:!0,generators:e.listAlias},options:[{name:"--all",description:"Delete all aliases"}]},{name:"import",description:"Import aliases from a YAML file",args:{name:"filename",isOptional:!0,template:"filepaths"},options:[{name:"--clobber",description:"Overwrite existing aliases of the same name"}]},{name:["list","ls"],description:"List your aliases"},{name:"set",description:"Create a shortcut for a gh command",args:[{name:"alias"},{name:"expansion"}],options:[{name:"--clobber",description:"Overwrite existing aliases of the same name"},{name:["-s","--shell"],description:"Declare an alias to be passed through a shell interpreter"}]}]},{name:"api",description:"Make an authenticated GitHub API request",args:{name:"endpoint"},options:[{name:"--allow-escape-sequences",description:"Allow printing terminal escape sequences"},{name:"--cache",description:'Cache the response, e.g. "3600s", "60m", "1h"',args:{name:"duration"}},{name:["-F","--field"],description:'Add a typed parameter in key=value format (use "@<path>" or "@-" to read value from file or stdin)',isRepeatable:!0,args:{name:"key=value"}},{name:["-H","--header"],description:"Add a HTTP request header in key:value format",isRepeatable:!0,args:{name:"key:value"}},{name:"--hostname",description:"The GitHub hostname for the request",args:{name:"hostname",default:"github.com"}},{name:["-i","--include"],description:"Include HTTP response status line and headers in the output"},{name:"--input",description:'The file to use as body for the HTTP request (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-q","--jq"],description:"Query to select values from the response using jq syntax",args:{name:"jq"}},{name:["-X","--method"],description:"The HTTP method for the request",args:{name:"method",default:"GET"}},{name:"--paginate",description:"Make additional HTTP requests to fetch all pages of results"},{name:["-p","--preview"],description:"Opt into GitHub API previews (names should omit '-preview')",isRepeatable:!0,args:{name:"preview"}},{name:["-f","--raw-field"],description:"Add a string parameter in key=value format",isRepeatable:!0,args:{name:"key=value"}},{name:"--silent",description:"Do not print the response body"},{name:"--slurp",description:'Use with "--paginate" to return an array of all pages of either JSON arrays or objects'},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--verbose",description:"Include full HTTP request and response in the output"}]},{name:["attestation","at"],description:"Work with artifact attestations",subcommands:[{name:"download",description:"Download an artifact's attestations for offline use",args:{name:"file-path | oci://image-uri",isOptional:!0,template:"filepaths"},options:[{name:["-d","--digest-alg"],description:"The algorithm used to compute a digest of the artifact: {sha256|sha512}",args:{name:"digest-alg",default:"sha256",suggestions:["sha256","sha512"]}},{name:"--hostname",description:"Configure host to use",args:{name:"hostname"}},{name:["-L","--limit"],description:"Maximum number of attestations to fetch",args:{name:"int",default:"30"}},{name:["-o","--owner"],description:"GitHub organization to scope attestation lookup by",args:{name:"owner"}},{name:"--predicate-type",description:"Filter attestations by provided predicate type",args:{name:"predicate-type"}},{name:["-R","--repo"],description:"Repository name in the format <owner>/<repo>",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}}]},{name:"trusted-root",description:"Output trusted_root.jsonl contents, likely for offline verification",options:[{name:"--hostname",description:"Configure host to use",args:{name:"hostname"}},{name:"--tuf-root",description:"Path to the TUF root.json file on disk",args:{name:"tuf-root"}},{name:"--tuf-url",description:"URL to the TUF repository mirror",args:{name:"tuf-url"}},{name:"--verify-only",description:"Don't output trusted_root.jsonl contents"}]},{name:"verify",description:"Verify an artifact's integrity using attestations",args:{name:"file-path | oci://image-uri",isOptional:!0,template:"filepaths"},options:[{name:["-b","--bundle"],description:"Path to bundle on disk, either a single bundle in a JSON file or a JSON lines file with multiple bundles",args:{name:"bundle"}},{name:"--bundle-from-oci",description:"When verifying an OCI image, fetch the attestation bundle from the OCI registry instead of from GitHub"},{name:"--cert-identity",description:"Enforce that the certificate's SubjectAlternativeName matches the provided value exactly",args:{name:"cert-identity"}},{name:["-i","--cert-identity-regex"],description:"Enforce that the certificate's SubjectAlternativeName matches the provided regex",args:{name:"cert-identity-regex"}},{name:"--cert-oidc-issuer",description:"Enforce that the issuer of the OIDC token matches the provided value",args:{name:"cert-oidc-issuer",default:"https://token.actions.githubusercontent.com"}},{name:"--custom-trusted-root",description:"Path to a trusted_root.jsonl file; likely for offline verification",args:{name:"custom-trusted-root"}},{name:"--deny-self-hosted-runners",description:"Fail verification for attestations generated on self-hosted runners"},{name:["-d","--digest-alg"],description:"The algorithm used to compute a digest of the artifact: {sha256|sha512}",args:{name:"digest-alg",default:"sha256",suggestions:["sha256","sha512"]}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:"--hostname",description:"Configure host to use",args:{name:"hostname"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-L","--limit"],description:"Maximum number of attestations to fetch",args:{name:"int",default:"30"}},{name:"--no-public-good",description:"Do not verify attestations signed with Sigstore public good instance"},{name:["-o","--owner"],description:"GitHub organization to scope attestation lookup by",args:{name:"owner"}},{name:"--predicate-type",description:"Enforce that verified attestations' predicate type matches the provided value",args:{name:"predicate-type",default:"https://slsa.dev/provenance/v1"}},{name:["-R","--repo"],description:"Repository name in the format <owner>/<repo>",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--signer-digest",description:"Enforce that the digest associated with the signer workflow matches the provided value",args:{name:"signer-digest"}},{name:"--signer-repo",description:"Enforce that the workflow that signed the attestation's repository matches the provided value (<owner>/<repo>)",args:{name:"signer-repo"}},{name:"--signer-workflow",description:"Enforce that the workflow that signed the attestation matches the provided value ([host/]<owner>/<repo>/<path>/<to>/<workflow>)",args:{name:"signer-workflow"}},{name:"--source-digest",description:"Enforce that the digest associated with the source repository matches the provided value",args:{name:"source-digest"}},{name:"--source-ref",description:"Enforce that the git ref associated with the source repository matches the provided value",args:{name:"source-ref"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]}]},{name:"auth",description:"Authenticate gh and git with GitHub",subcommands:[{name:"login",description:"Log in to a GitHub account",options:[{name:["-c","--clipboard"],description:"Copy one-time OAuth device code to clipboard"},{name:"--expiring",description:"Prefer expiring credentials that gh refreshes automatically, if the host supports them"},{name:["-p","--git-protocol"],description:"The protocol to use for git operations on this host: {ssh|https}",args:{name:"git-protocol",suggestions:["ssh","https"]}},{name:["-h","--hostname"],description:"The hostname of the GitHub instance to authenticate with",args:{name:"hostname"}},{name:"--insecure-storage",description:"Save authentication credentials in plain text instead of credential store"},{name:["-s","--scopes"],description:"Additional authentication scopes to request",isRepeatable:!0,args:{name:"scopes"}},{name:"--skip-ssh-key",description:"Skip generate/upload SSH key prompt"},{name:["-w","--web"],description:"Open a browser to authenticate"},{name:"--with-token",description:"Read token from standard input"}]},{name:"logout",description:"Log out of a GitHub account",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to log out of",args:{name:"hostname"}},{name:["-u","--user"],description:"The account to log out of",args:{name:"user"}}]},{name:"refresh",description:"Refresh stored authentication credentials",options:[{name:["-c","--clipboard"],description:"Copy one-time OAuth device code to clipboard"},{name:"--expiring",description:"Prefer expiring credentials that gh refreshes automatically, if the host supports them"},{name:["-h","--hostname"],description:"The GitHub host to use for authentication",args:{name:"hostname"}},{name:"--insecure-storage",description:"Save authentication credentials in plain text instead of credential store"},{name:["-r","--remove-scopes"],description:"Authentication scopes to remove from gh",isRepeatable:!0,args:{name:"remove-scopes"}},{name:"--reset-scopes",description:"Reset authentication scopes to the default minimum set of scopes"},{name:["-s","--scopes"],description:"Additional authentication scopes for gh to have",isRepeatable:!0,args:{name:"scopes"}}]},{name:"setup-git",description:"Setup git with GitHub CLI",options:[{name:["-f","--force"],description:"Force setup even if the host is not known. Must be used in conjunction with --hostname"},{name:["-h","--hostname"],description:"The hostname to configure git for",args:{name:"hostname"}}]},{name:"status",description:"Display active account and authentication state on each known GitHub host",options:[{name:["-a","--active"],description:"Display the active account only"},{name:["-h","--hostname"],description:"Check only a specific hostname's auth status",args:{name:"hostname"}},{name:"--jq",description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ge})}},{name:"--no-refresh",description:"Do not automatically refresh expired tokens"},{name:["-t","--show-token"],description:"Display the auth token"},{name:"--template",description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"switch",description:"Switch active GitHub account",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance to switch account for",args:{name:"hostname"}},{name:["-u","--user"],description:"The account to switch to",args:{name:"user"}}]},{name:"token",description:"Print the authentication token gh uses for a hostname and account",options:[{name:["-h","--hostname"],description:"The hostname of the GitHub instance authenticated with",args:{name:"hostname"}},{name:"--no-refresh",description:"Do not automatically refresh an expired token"},{name:["-u","--user"],description:"The account to output the token for",args:{name:"user"}}]}]},{name:"browse",description:"Open repositories, issues, pull requests, and more in the browser",args:{name:"number | path | commit-sha",isOptional:!0,template:"filepaths"},options:[{name:["-a","--actions"],description:"Open repository actions"},{name:"--blame",description:"Open blame view for a file"},{name:["-b","--branch"],description:"Select another branch by passing in the branch name",args:{name:"branch",generators:e.remoteBranches}},{name:["-c","--commit"],description:"Select another commit by passing in the commit SHA, default is the last commit",args:{name:"commit",isOptional:!0}},{name:["-n","--no-browser"],description:"Print destination URL instead of opening the browser"},{name:["-p","--projects"],description:"Open repository projects"},{name:["-r","--releases"],description:"Open repository releases"},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-s","--settings"],description:"Open repository settings"},{name:["-w","--wiki"],description:"Open repository wiki"}]},{name:"cache",description:"Manage GitHub Actions caches",subcommands:[{name:"delete",description:"Delete GitHub Actions caches",isDangerous:!0,args:{name:"cache-id | cache-key",isOptional:!0},options:[{name:["-a","--all"],description:"Delete all caches, can be used with --ref to delete all caches for a specific ref"},{name:["-r","--ref"],description:"Delete by cache key and ref, formatted as refs/heads/<branch name> or refs/pull/<number>/merge",args:{name:"ref"}},{name:"--succeed-on-no-caches",description:"Return exit code 0 if no caches found. Must be used in conjunction with --all"}]},{name:["list","ls"],description:"List GitHub Actions caches",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:He})}},{name:["-k","--key"],description:"Filter by cache key prefix",args:{name:"key"}},{name:["-L","--limit"],description:"Maximum number of caches to fetch",args:{name:"int",default:"30"}},{name:["-O","--order"],description:"Order of caches returned: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:["-r","--ref"],description:"Filter by ref, formatted as refs/heads/<branch name> or refs/pull/<number>/merge",args:{name:"ref"}},{name:["-S","--sort"],description:"Sort fetched caches: {created_at|last_accessed_at|size_in_bytes}",args:{name:"sort",default:"last_accessed_at",suggestions:["created_at","last_accessed_at","size_in_bytes"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:["codespace","cs"],description:"Connect to and manage codespaces",subcommands:[{name:"code",description:"Open a codespace in Visual Studio Code",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:"--insiders",description:"Use the insiders version of Visual Studio Code"},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}},{name:["-w","--web"],description:"Use the web version of Visual Studio Code"}]},{name:"cp",description:"Copy files between local and remote file systems",args:[{name:"sources",isVariadic:!0},{name:"dest"}],options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-e","--expand"],description:"Expand remote file names on remote shell"},{name:["-p","--profile"],description:"Name of the SSH profile to use",args:{name:"profile"}},{name:["-r","--recursive"],description:"Recursively copy directories"},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}}]},{name:"create",description:"Create a codespace",options:[{name:["-b","--branch"],description:"Repository branch",args:{name:"branch"}},{name:"--default-permissions",description:"Do not prompt to accept additional permissions requested by the codespace"},{name:"--devcontainer-path",description:"Path to the devcontainer.json file to use when creating codespace",args:{name:"devcontainer-path",generators:(0,o.filepaths)({extensions:["json"]})}},{name:["-d","--display-name"],description:"Display name for the codespace (48 characters or less)",args:{name:"display-name"}},{name:"--idle-timeout",description:'Allowed inactivity before codespace is stopped, e.g. "10m", "1h"',args:{name:"duration"}},{name:["-l","--location"],description:"Location: {EastUs|SouthEastAsia|WestEurope|WestUs2} (determined automatically if not provided)",args:{name:"location",suggestions:["EastUs","SouthEastAsia","WestEurope","WestUs2"]}},{name:["-m","--machine"],description:"Hardware specifications for the VM",args:{name:"machine"}},{name:["-R","--repo"],description:"Repository name with owner: user/repo",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--retention-period",description:'Allowed time after shutting down before the codespace is automatically deleted (maximum 30 days), e.g. "1h", "72h"',args:{name:"duration"}},{name:["-s","--status"],description:"Show status of post-create command and dotfiles"},{name:["-w","--web"],description:"Create codespace from browser, cannot be used with --display-name, --idle-timeout, or --retention-period"}]},{name:"delete",description:"Delete codespaces",isDangerous:!0,options:[{name:"--all",description:"Delete all codespaces"},{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:"--days",description:"Delete codespaces older than N days",args:{name:"N"}},{name:["-f","--force"],description:"Skip confirmation for codespaces that contain unsaved changes"},{name:["-o","--org"],description:"The login handle of the organization (admin-only)",args:{name:"login"}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}},{name:["-u","--user"],description:"The username to delete codespaces for (used with --org)",args:{name:"username"}},{name:"-r",description:"Filter codespace selection by repository name (user/repo)",args:{name:"string"},deprecated:{description:"Use -R instead"}}]},{name:"edit",description:"Edit a codespace",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-d","--display-name"],description:"Set the display name",args:{name:"display-name"}},{name:["-m","--machine"],description:"Set hardware specifications for the VM",args:{name:"machine"}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}}]},{name:"jupyter",description:"Open a codespace in JupyterLab",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}}]},{name:["list","ls"],description:"List codespaces",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ie})}},{name:["-L","--limit"],description:"Maximum number of codespaces to list",args:{name:"int",default:"30"}},{name:["-o","--org"],description:"The login handle of the organization to list codespaces for (admin-only)",args:{name:"login"}},{name:["-R","--repo"],description:"Repository name with owner: user/repo",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-u","--user"],description:"The username to list codespaces for (used with --org)",args:{name:"username"}},{name:["-w","--web"],description:"List codespaces in the web browser, cannot be used with --user or --org"}]},{name:"logs",description:"Access codespace logs",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-f","--follow"],description:"Tail and follow the logs"},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}}]},{name:"ports",description:"List ports in a codespace",subcommands:[{name:"forward",description:"Forward ports",args:{name:"remote-port:local-port",isVariadic:!0,generators:(0,o.keyValue)({separator:":",cache:!0})},options:[{name:"--all-interfaces",description:"Listen on all network interfaces"}]},{name:"visibility",description:"Change the visibility of the forwarded port",args:{name:"port:visibility",isVariadic:!0,generators:(0,o.keyValue)({separator:":",values:["public","private","org"],cache:!0})}}],options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"},isPersistent:!0},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"},isPersistent:!0},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ue})},isPersistent:!0},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"},isPersistent:!0},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"},isPersistent:!0}]},{name:"rebuild",description:"Rebuild a codespace",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:"--full",description:"Perform a full rebuild"},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}}]},{name:"ssh",description:"SSH into a codespace",args:{name:"command",isOptional:!0},options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:"--config",description:"Write OpenSSH configuration to stdout"},{name:["-d","--debug"],description:"Log debug data to a file"},{name:"--debug-file",description:"Path of the file log to",args:{name:"debug-file",template:"filepaths"}},{name:"--profile",description:"Name of the SSH profile to use",args:{name:"profile"}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}},{name:"--server-port",description:"SSH server port number (0 => pick unused)",args:{name:"int"}}]},{name:"stop",description:"Stop a running codespace",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-o","--org"],description:"The login handle of the organization (admin-only)",args:{name:"login"}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}},{name:["-u","--user"],description:"The username to stop codespace for (used with --org)",args:{name:"username"}}]},{name:"view",description:"View details about a codespace",options:[{name:["-c","--codespace"],description:"Name of the codespace",args:{name:"codespace"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Me})}},{name:["-R","--repo"],description:"Filter codespace selection by repository name (user/repo)",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--repo-owner",description:"Filter codespace selection by repository owner (username or org)",args:{name:"repo-owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]}]},{name:"completion",description:"Generate shell completion scripts",options:[{name:["-s","--shell"],description:"Shell type: {bash|zsh|fish|powershell}",args:{name:"shell",suggestions:["bash","zsh","fish","powershell"]}}]},{name:"config",description:"Manage configuration for gh",subcommands:[{name:"clear-cache",description:"Clear the cli cache"},{name:"get",description:"Print the value of a given configuration key",args:{name:"key",suggestions:se},options:[{name:["-h","--host"],description:"Get per-host setting",args:{name:"host"}}]},{name:["list","ls"],description:"Print a list of configuration keys and values",options:[{name:["-h","--host"],description:"Get per-host configuration",args:{name:"host"}}]},{name:"set",description:"Update configuration with a value for the given key",args:[{name:"key",suggestions:se},{name:"value"}],options:[{name:["-h","--host"],description:"Set per-host setting",args:{name:"host"}}]}]},{name:"copilot",description:"Run the GitHub Copilot CLI (preview)",args:{name:"args",isOptional:!0,isVariadic:!0},options:[{name:"--remove",description:"Remove the downloaded Copilot CLI"}]},{name:"discussion",description:"Work with GitHub Discussions (preview)",subcommands:[{name:"comment",description:"Add, edit, or delete a comment or a reply on a discussion (preview)",args:{name:"number | discussion-url | comment-id | comment-url"},options:[{name:["-b","--body"],description:"Comment body text",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"body-file",template:"filepaths"}},{name:"--delete",description:"Delete the specified comment"},{name:"--edit",description:"Edit the specified comment"},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--yes",description:"Skip the delete confirmation prompt"}]},{name:"create",description:"Create a new discussion (preview)",options:[{name:["-b","--body"],description:"Body for the discussion",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from stdin)',args:{name:"body-file",template:"filepaths"}},{name:["-c","--category"],description:"Category name or slug for the discussion",args:{name:"category"}},{name:["-l","--label"],description:"Labels to apply to the discussion",isRepeatable:!0,args:{name:"label"}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--title"],description:"Title for the discussion",args:{name:"title"}}]},{name:"edit",description:"Edit a discussion (preview)",args:{name:"number | discussion-url"},options:[{name:"--add-label",description:"Add labels by name",isRepeatable:!0,args:{name:"name"}},{name:["-b","--body"],description:"New body for the discussion",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"body-file",template:"filepaths"}},{name:["-c","--category"],description:"New category name or slug for the discussion",args:{name:"category"}},{name:"--remove-label",description:"Remove labels by name",isRepeatable:!0,args:{name:"name"}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--title"],description:"New title for the discussion",args:{name:"title"}}]},{name:["list","ls"],description:"List discussions in a repository (preview)",options:[{name:"--after",description:"Cursor for the next page of results",args:{name:"after"}},{name:"--answered",description:"Filter by answered state"},{name:["-A","--author"],description:"Filter by author",args:{name:"author"}},{name:["-c","--category"],description:"Filter by category name or slug",args:{name:"category"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:_e})}},{name:["-l","--label"],description:"Filter by label",isRepeatable:!0,args:{name:"label"}},{name:["-L","--limit"],description:"Maximum number of discussions to fetch",args:{name:"int",default:"30"}},{name:"--order",description:"Order of results: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-S","--search"],description:"Search discussions with query",args:{name:"query"}},{name:"--sort",description:"Sort by field: {created|updated}",args:{name:"sort",default:"updated",suggestions:["created","updated"]}},{name:["-s","--state"],description:"Filter by state: {open|closed|all}",args:{name:"state",default:"open",suggestions:["open","closed","all"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"List discussions in the web browser"}]},{name:"view",description:"View a discussion (preview)",args:{name:"number | discussion-url | comment-id | comment-url"},options:[{name:"--after",description:"Cursor for the next page",args:{name:"after"}},{name:["-c","--comments"],description:"View discussion comments"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:We})}},{name:["-L","--limit"],description:"Maximum number of comments or replies to fetch",args:{name:"int",default:"30"}},{name:"--order",description:"Order of comments or replies: {oldest|newest}",args:{name:"order",default:"newest",suggestions:["oldest","newest"]}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open a discussion in the browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:["extension","extensions","ext"],description:"Manage gh extensions",subcommands:[{name:"browse",description:"Enter a UI for browsing, adding, and removing extensions",options:[{name:"--debug",description:"Log to /tmp/extBrowse-*"},{name:["-s","--single-column"],description:"Render TUI with only one column of text"}]},{name:"create",description:"Create a new extension",args:{name:"name",isOptional:!0},options:[{name:"--precompiled",description:"Create a precompiled extension. Possible values: go, other",args:{name:"precompiled"}}]},{name:"exec",description:"Execute an installed extension",args:[{name:"name"},{name:"args",isOptional:!0,isVariadic:!0}]},{name:"install",description:"Install a gh extension from a repository",args:{name:"repository"},options:[{name:"--force",description:"Force upgrade extension, or ignore if latest already installed"},{name:"--pin",description:"Pin extension to a release tag or commit ref",args:{name:"pin"}}]},{name:["list","ls"],description:"List installed extension commands"},{name:["remove","uninstall"],description:"Remove an installed extension",args:{name:"name"}},{name:"search",description:"Search extensions to the GitHub CLI",args:{name:"query",isOptional:!0},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ne})}},{name:"--license",description:"Filter based on license type",isRepeatable:!0,args:{name:"license"}},{name:["-L","--limit"],description:"Maximum number of extensions to fetch",args:{name:"int",default:"30"}},{name:"--order",description:"Order of repositories returned, ignored unless '--sort' flag is specified: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:"--owner",description:"Filter on owner",isRepeatable:!0,args:{name:"owner"}},{name:"--sort",description:"Sort fetched repositories: {forks|help-wanted-issues|stars|updated}",args:{name:"sort",default:"best-match",suggestions:["forks","help-wanted-issues","stars","updated"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open the search query in the web browser"}]},{name:"upgrade",description:"Upgrade installed extensions",args:{name:"name",isOptional:!0},options:[{name:"--all",description:"Upgrade all extensions"},{name:"--dry-run",description:"Only display upgrades"},{name:"--force",description:"Force upgrade extension"}]}]},{name:"gist",description:"Manage gists",subcommands:[{name:"clone",description:"Clone a gist locally",args:[{name:"gist"},{name:"directory",isOptional:!0,template:"folders"}],options:[H]},{name:["create","new"],description:"Create a new gist",args:{name:"filename... | pattern...",isOptional:!0,template:"filepaths"},options:[{name:["-d","--desc"],description:"A description for this gist",args:{name:"desc"}},{name:["-f","--filename"],description:"Provide a filename to be used when reading from standard input",args:{name:"filename"}},{name:["-p","--public"],description:'List the gist publicly (default "secret")'},{name:["-w","--web"],description:"Open the web browser with created gist"}]},{name:"delete",description:"Delete a gist",isDangerous:!0,args:{name:"id | url"},options:[{name:"--yes",description:"Confirm deletion without prompting"}]},{name:"edit",description:"Edit one of your gists",args:[{name:"id | url"},{name:"filename",isOptional:!0,template:"filepaths"}],options:[{name:["-a","--add"],description:"Add a new file to the gist",args:{name:"add"}},{name:["-d","--desc"],description:"New description for the gist",args:{name:"desc"}},{name:["-f","--filename"],description:"Select a file to edit",args:{name:"filename"}},{name:["-r","--remove"],description:"Remove a file from the gist",args:{name:"remove"}}]},{name:["list","ls"],description:"List your gists",options:[{name:"--filter",description:"Filter gists using a regular expression",args:{name:"expression"}},{name:"--include-content",description:"Include gists' file content when filtering"},{name:["-L","--limit"],description:"Maximum number of gists to fetch",args:{name:"int",default:"10"}},{name:"--public",description:"Show only public gists"},{name:"--secret",description:"Show only secret gists"}]},{name:"rename",description:"Rename a file in a gist",args:[{name:"id | url"},{name:"old-filename",template:"filepaths"},{name:"new-filename",template:"filepaths"}]},{name:"view",description:"View a gist",args:{name:"id | url",isOptional:!0},options:[{name:"--allow-escape-sequences",description:"Allow printing terminal escape sequences"},{name:["-f","--filename"],description:"Display a single file from the gist",args:{name:"filename"}},{name:"--files",description:"List file names from the gist"},{name:["-r","--raw"],description:"Print raw instead of rendered gist contents"},{name:["-w","--web"],description:"Open gist in the browser"}]}]},{name:"gpg-key",description:"Manage GPG keys",subcommands:[{name:"add",description:"Add a GPG key to your GitHub account",args:{name:"key-file",isOptional:!0,template:"filepaths"},options:[{name:["-t","--title"],description:"Title for the new key",args:{name:"title"}}]},{name:"delete",description:"Delete a GPG key from your GitHub account",isDangerous:!0,args:{name:"key-id"},options:[{name:["-y","--yes"],description:"Skip the confirmation prompt"}]},{name:["list","ls"],description:"Lists GPG keys in your GitHub account"}]},{name:"issue",description:"Manage issues",subcommands:[{name:"artifact",description:"Work with issue artifacts (preview)",subcommands:[{name:["create","new"],description:"Create issue artifacts (preview)",args:[{name:"issue-number | issue-url"},{name:"file[#name] | url",isOptional:!0,isVariadic:!0,template:"filepaths"}],options:[{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-b","--body"],description:"Content for a single document",args:{name:"body"}},{name:["-F","--body-file"],description:'Read content for a single artifact from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--name",description:"Name for a single artifact",args:{name:"name"}},{name:"--type",description:"Type for documents: {generic|plan|embedded_html}",args:{name:"type",suggestions:["generic","plan","embedded_html"]}}]},{name:"delete",description:"Delete issue artifacts (preview)",isDangerous:!0,args:{name:"issue artifact-number... | artifact-url...",isVariadic:!0},options:[{name:"--yes",description:"Confirm deletion without prompting"}]},{name:"download",description:"Download issue artifacts (preview)",args:{name:"issue [artifact-number...] | artifact-url...",isVariadic:!0},options:[{name:"--clobber",description:"Overwrite existing files of the same name"},{name:["-D","--dir"],description:"The directory to download files into",args:{name:"directory",default:".",template:"folders"}},{name:["-O","--output"],description:'The file to write a single artifact to (use "-" to write to standard output)',args:{name:"file",template:"filepaths"}},{name:"--skip-existing",description:"Skip downloading when files of the same name exist"},{name:"--version",description:"Download the version with this number from the edit history",args:{name:"number"}}]},{name:"edit",description:"Edit an issue artifact (preview)",args:{name:"issue artifact-number | artifact-url"},options:[{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-b","--body"],description:"New content; for a link, a URL",args:{name:"body"}},{name:["-F","--body-file"],description:'Read new content from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--name",description:"New name",args:{name:"name"}},{name:"--restore-version",description:"Restore the version with this number from the edit history",args:{name:"number"}}]},{name:["list","ls"],description:"List artifacts on an issue (preview)",args:{name:"issue-number | issue-url"},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ve})}},{name:["-L","--limit"],description:"Maximum number of artifacts to fetch",args:{name:"int"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--type",description:"Filter by type: {generic|plan|link|embedded_html}",args:{name:"type",suggestions:["generic","plan","link","embedded_html"]}}]},{name:"view",description:"View an issue artifact (preview)",args:{name:"issue artifact-number | artifact-url"},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ze})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--version",description:"Show the version with this number from the edit history",args:{name:"number"}},{name:["-w","--web"],description:"Open a document's page on GitHub, or a link's URL"}]}]},{name:"close",description:"Close issue",args:{name:"number | url",generators:e.listIssue},options:[{name:["-c","--comment"],description:"Leave a closing comment",args:{name:"comment"}},{name:"--duplicate-of",description:"Mark as duplicate of another issue by number or URL",args:{name:"duplicate-of"}},{name:["-r","--reason"],description:"Reason for closing: {completed|not planned|duplicate}",args:{name:"reason"}}]},{name:"comment",description:"Add a comment to an issue",args:{name:"number | url",generators:e.listIssue},options:[{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-b","--body"],description:"The comment body text",args:{name:"text"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--create-if-none",description:"Create a new comment if no comments are found. Can be used only with --edit-last"},{name:"--delete-last",description:"Delete the last comment of the current user"},{name:"--edit-last",description:"Edit the last comment of the current user"},{name:["-e","--editor"],description:"Skip prompts and open the text editor to write the body in"},{name:["-w","--web"],description:"Open the web browser to write the comment"},{name:"--yes",description:"Skip the delete confirmation prompt when --delete-last is provided"}]},{name:["create","new"],description:"Create a new issue",options:[{name:["-a","--assignee"],description:'Assign people by their login. Use "@me" to self-assign',isRepeatable:!0,args:{name:"login"}},{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:"--blocked-by",description:"Mark the new issue as blocked by these issue numbers or URLs",args:{name:"numbers"}},{name:"--blocking",description:"Mark the new issue as blocking these issue numbers or URLs",args:{name:"numbers"}},{name:["-b","--body"],description:"Supply a body. Will prompt for one otherwise",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-e","--editor"],description:"Skip prompts and open the text editor to write the title and body in. The first line is the title and the remaining text is the body"},{name:["-l","--label"],description:"Add labels by name",isRepeatable:!0,args:{name:"name"}},{name:["-m","--milestone"],description:"Add the issue to a milestone by name",args:{name:"name"}},{name:"--parent",description:"Add the new issue as a sub-issue of the specified parent number or URL",args:{name:"number"}},{name:["-p","--project"],description:"Add the issue to projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--recover",description:"Recover input from a failed run of create",args:{name:"recover"}},{name:["-T","--template"],description:"Template name to use as starting body text",args:{name:"name"}},{name:["-t","--title"],description:"Supply a title. Will prompt for one otherwise",args:{name:"title"}},{name:"--type",description:"Set the issue type by name",args:{name:"name"}},{name:["-w","--web"],description:"Open the browser to create an issue"}]},{name:"delete",description:"Delete issue",isDangerous:!0,args:{name:"number | url",generators:e.listIssue},options:[{name:"--yes",description:"Confirm deletion without prompting"}]},{name:"develop",description:"Manage linked branches for an issue",args:{name:"number | url",generators:e.listIssue},options:[{name:["-b","--base"],description:"Name of the remote branch you want to make your new branch from",args:{name:"base"}},{name:"--branch-repo",description:"Name or URL of the repository where you want to create your new branch",args:{name:"branch-repo"}},{name:["-c","--checkout"],description:"Checkout the branch after creating it"},{name:["-l","--list"],description:"List linked branches for the issue"},{name:["-n","--name"],description:"Name of the branch to create",args:{name:"name"}},{name:"--worktree",description:"Check out the branch into a worktree at the given path",args:{name:"path",template:"filepaths"}}]},{name:"edit",description:"Edit issues",args:{name:"numbers | urls",generators:e.listIssue,isVariadic:!0},options:[{name:"--add-assignee",description:'Add assigned users by their login. Use "@me" to assign yourself, or "@copilot" to assign Copilot',args:{name:"login"}},{name:"--add-blocked-by",description:"Add 'blocked by' relationships by issue number or URL",args:{name:"number"}},{name:"--add-blocking",description:"Add 'blocking' relationships by issue number or URL",args:{name:"number"}},{name:"--add-label",description:"Add labels by name",isRepeatable:!0,args:{name:"name"}},{name:"--add-project",description:"Add the issue to projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--add-sub-issue",description:"Add sub-issues by number or URL",args:{name:"number"}},{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-b","--body"],description:"Set the new body",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-m","--milestone"],description:"Edit the milestone the issue belongs to by name",args:{name:"name"}},{name:"--parent",description:"Set the parent issue by number or URL",args:{name:"number"}},{name:"--remove-assignee",description:'Remove assigned users by their login. Use "@me" to unassign yourself, or "@copilot" to unassign Copilot',args:{name:"login"}},{name:"--remove-blocked-by",description:"Remove 'blocked by' relationships by issue number or URL",args:{name:"number"}},{name:"--remove-blocking",description:"Remove 'blocking' relationships by issue number or URL",args:{name:"number"}},{name:"--remove-label",description:"Remove labels by name",isRepeatable:!0,args:{name:"name"}},{name:"--remove-milestone",description:"Remove the milestone association from the issue"},{name:"--remove-parent",description:"Remove the parent issue"},{name:"--remove-project",description:"Remove the issue from projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--remove-sub-issue",description:"Remove sub-issues by number or URL",args:{name:"number"}},{name:"--remove-type",description:"Remove the issue type from the issue"},{name:["-t","--title"],description:"Set the new title",args:{name:"title"}},{name:"--type",description:"Set the issue type by name",args:{name:"name"}}]},{name:["list","ls"],description:"List issues in a repository",options:[{name:"--app",description:"Filter by GitHub App author",args:{name:"app"}},{name:["-a","--assignee"],description:"Filter by assignee",args:{name:"assignee"}},{name:["-A","--author"],description:"Filter by author (use --app to filter by a GitHub App)",args:{name:"author"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:I})}},{name:["-l","--label"],description:"Filter by label",isRepeatable:!0,args:{name:"label"}},{name:["-L","--limit"],description:"Maximum number of issues to fetch",args:{name:"int",default:"30"}},{name:"--mention",description:"Filter by mention",args:{name:"mention"}},{name:["-m","--milestone"],description:"Filter by milestone number or title",args:{name:"milestone"}},{name:["-S","--search"],description:"Search issues with query",args:{name:"query"}},{name:["-s","--state"],description:"Filter by state: {open|closed|all}",args:{name:"state",default:"open",suggestions:["open","closed","all"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--type",description:"Filter by issue type name",args:{name:"name"}},{name:["-w","--web"],description:"List issues in the web browser"}]},{name:"lock",description:"Lock issue conversation",args:{name:"number | url",generators:e.listIssue},options:[{name:["-r","--reason"],description:"Optional reason for locking conversation (off_topic, resolved, spam, too_heated)",args:{name:"reason"}}]},{name:"pin",description:"Pin an issue",args:{name:"number | url",generators:e.listIssue}},{name:"reopen",description:"Reopen issue",args:{name:"number | url",generators:e.listIssue},options:[{name:["-c","--comment"],description:"Add a reopening comment",args:{name:"comment"}}]},{name:"status",description:"Show status of relevant issues",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:I})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"transfer",description:"Transfer issue to another repository",args:[{name:"number | url",generators:e.listIssue},{name:"destination-repo"}]},{name:"unlock",description:"Unlock issue conversation",args:{name:"number | url",generators:e.listIssue}},{name:"unpin",description:"Unpin an issue",args:{name:"number | url",generators:e.listIssue}},{name:"view",description:"View an issue",args:{name:"number | url",generators:e.listIssue},options:[{name:["-c","--comments"],description:"View issue comments"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:I})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open an issue in the browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"label",description:"Manage labels",subcommands:[{name:"clone",description:"Clones labels from one repository to another",args:{name:"source-repository",generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-f","--force"],description:"Overwrite labels in the destination repository"}]},{name:"create",description:"Create a new label",args:{name:"name"},options:[{name:["-c","--color"],description:"Color of the label",args:{name:"color"}},{name:["-d","--description"],description:"Description of the label",args:{name:"description"}},{name:["-f","--force"],description:"Update the label color and description if label already exists"}]},{name:"delete",description:"Delete a label from a repository",isDangerous:!0,args:{name:"name"},options:[{name:"--yes",description:"Confirm deletion without prompting"}]},{name:"edit",description:"Edit a label",args:{name:"name"},options:[{name:["-c","--color"],description:"Color of the label",args:{name:"color"}},{name:["-d","--description"],description:"Description of the label",args:{name:"description"}},{name:["-n","--name"],description:"New name of the label",args:{name:"name"}}]},{name:["list","ls"],description:"List labels in a repository",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Be})}},{name:["-L","--limit"],description:"Maximum number of labels to fetch",isRepeatable:!0,args:{name:"int",default:"30"}},{name:"--order",description:"Order of labels returned: {asc|desc}",isRepeatable:!0,args:{name:"order",default:"asc",suggestions:["asc","desc"]}},{name:["-S","--search"],description:"Search label names and descriptions",args:{name:"search"}},{name:"--sort",description:"Sort fetched labels: {created|name}",isRepeatable:!0,args:{name:"sort",default:"created",suggestions:["created","name"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"List labels in the web browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"licenses",description:"View third-party license information"},{name:"org",description:"Manage organizations",subcommands:[{name:["list","ls"],description:"List organizations for the authenticated user",options:[{name:["-L","--limit"],description:"Maximum number of organizations to list",args:{name:"int",default:"30"}}]}]},{name:"pr",description:"Manage pull requests",subcommands:[{name:["checkout","co"],description:"Check out a pull request in git",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:["-b","--branch"],description:"Local branch name to use (default [the name of the head branch])",args:{name:"branch"}},{name:"--detach",description:"Checkout PR with a detached HEAD"},{name:["-f","--force"],description:"Reset the existing local branch to the latest state of the pull request"},{name:"--recurse-submodules",description:"Update all submodules after checkout"},{name:"--worktree",description:"Check out the pull request into a worktree at the given path",args:{name:"path",template:"filepaths"}}]},{name:"checks",description:"Show CI status for a single pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--fail-fast",description:"Exit watch mode on first check failure"},{name:["-i","--interval"],description:"Refresh interval in seconds in watch mode",args:{name:"int",default:"10"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:$e})}},{name:"--required",description:"Only show checks that are required"},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--watch",description:"Watch checks until they finish"},{name:["-w","--web"],description:"Open the web browser to show details about checks"}]},{name:"close",description:"Close a pull request",args:{name:"number | url | branch",generators:e.listPR},options:[{name:["-c","--comment"],description:"Leave a closing comment",args:{name:"comment"}},{name:["-d","--delete-branch"],description:"Delete the local and remote branch after close"}]},{name:"comment",description:"Add a comment to a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-b","--body"],description:"The comment body text",args:{name:"text"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--create-if-none",description:"Create a new comment if no comments are found. Can be used only with --edit-last"},{name:"--delete-last",description:"Delete the last comment of the current user"},{name:"--edit-last",description:"Edit the last comment of the current user"},{name:["-e","--editor"],description:"Skip prompts and open the text editor to write the body in"},{name:["-w","--web"],description:"Open the web browser to write the comment"},{name:"--yes",description:"Skip the delete confirmation prompt when --delete-last is provided"}]},{name:["create","new"],description:"Create a pull request",options:[{name:["-a","--assignee"],description:'Assign people by their login. Use "@me" to self-assign',isRepeatable:!0,args:{name:"login"}},{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-B","--base"],description:"The branch into which you want your code merged",args:{name:"branch",generators:e.remoteBranches}},{name:["-b","--body"],description:"Body for the pull request",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-d","--draft"],description:"Mark pull request as a draft"},{name:"--dry-run",description:"Print details instead of creating the PR. May still push git changes"},{name:["-e","--editor"],description:"Skip prompts and open the text editor to write the title and body in. The first line is the title and the remaining text is the body"},{name:["-f","--fill"],description:"Use commit info for title and body"},{name:"--fill-first",description:"Use first commit info for title and body"},{name:"--fill-verbose",description:"Use commits msg+body for description"},{name:["-H","--head"],description:"The branch that contains commits for your pull request (default [current branch])",args:{name:"branch",generators:e.remoteBranches}},{name:["-l","--label"],description:"Add labels by name",isRepeatable:!0,args:{name:"name"}},{name:["-m","--milestone"],description:"Add the pull request to a milestone by name",args:{name:"name"}},{name:"--no-maintainer-edit",description:"Disable maintainer's ability to modify pull request"},{name:["-p","--project"],description:"Add the pull request to projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--recover",description:"Recover input from a failed run of create",args:{name:"recover"}},{name:["-r","--reviewer"],description:"Request reviews from people or teams by their handle",isRepeatable:!0,args:{name:"handle"}},{name:["-T","--template"],description:"Template file to use as starting body text",args:{name:"file",template:"filepaths"}},{name:["-t","--title"],description:"Title for the pull request",args:{name:"title"}},{name:["-w","--web"],description:"Open the web browser to create a pull request"}]},{name:"diff",description:"View changes in a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--allow-escape-sequences",description:"Allow printing terminal escape sequences"},{name:"--color",description:"Use color in diff output: {always|never|auto}",args:{name:"color",default:"auto",suggestions:["always","never","auto"]}},{name:["-e","--exclude"],description:"Exclude files matching glob patterns from the diff",args:{name:"patterns"}},{name:"--name-only",description:"Display only names of changed files"},{name:"--patch",description:"Display diff in patch format"},{name:["-w","--web"],description:"Open the pull request diff in the browser"}]},{name:"edit",description:"Edit a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--add-assignee",description:'Add assigned users by their login. Use "@me" to assign yourself, or "@copilot" to assign Copilot',args:{name:"login"}},{name:"--add-label",description:"Add labels by name",isRepeatable:!0,args:{name:"name"}},{name:"--add-project",description:"Add the pull request to projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--add-reviewer",description:'Add or re-request reviewers by their login. Use "@copilot" to request review from Copilot',isRepeatable:!0,args:{name:"login"}},{name:"--attach",description:"Attach an image or video file, in '<file>#<image alt text>' format",args:{name:"file",template:"filepaths"}},{name:["-B","--base"],description:"Change the base branch for this pull request",args:{name:"branch",generators:e.remoteBranches}},{name:["-b","--body"],description:"Set the new body",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-m","--milestone"],description:"Edit the milestone the pull request belongs to by name",args:{name:"name"}},{name:"--remove-assignee",description:'Remove assigned users by their login. Use "@me" to unassign yourself, or "@copilot" to unassign Copilot',args:{name:"login"}},{name:"--remove-label",description:"Remove labels by name",isRepeatable:!0,args:{name:"name"}},{name:"--remove-milestone",description:"Remove the milestone association from the pull request"},{name:"--remove-project",description:"Remove the pull request from projects by title",isRepeatable:!0,args:{name:"title"}},{name:"--remove-reviewer",description:'Remove reviewers by their login. Use "@copilot" to remove review request from Copilot',isRepeatable:!0,args:{name:"login"}},{name:["-t","--title"],description:"Set the new title",args:{name:"title"}}]},{name:["list","ls"],description:"List pull requests in a repository",options:[{name:"--app",description:"Filter by GitHub App author",args:{name:"app"}},{name:["-a","--assignee"],description:"Filter by assignee",args:{name:"assignee"}},{name:["-A","--author"],description:"Filter by author (use --app to filter by a GitHub App)",args:{name:"author"}},{name:["-B","--base"],description:"Filter by base branch",args:{name:"base",generators:e.remoteBranches}},{name:["-d","--draft"],description:"Filter by draft state"},{name:["-H","--head"],description:'Filter by head branch ("<owner>:<branch>" syntax not supported)',args:{name:"head",generators:e.remoteBranches}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:U})}},{name:["-l","--label"],description:"Filter by label",isRepeatable:!0,args:{name:"label"}},{name:["-L","--limit"],description:"Maximum number of items to fetch",args:{name:"int",default:"30"}},{name:["-S","--search"],description:"Search pull requests with query",args:{name:"query"}},{name:["-s","--state"],description:"Filter by state: {open|closed|merged|all}",args:{name:"state",default:"open",suggestions:["open","closed","merged","all"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"List pull requests in the web browser"}]},{name:"lock",description:"Lock pull request conversation",args:{name:"number | url",generators:e.listPR},options:[{name:["-r","--reason"],description:"Optional reason for locking conversation (off_topic, resolved, spam, too_heated)",args:{name:"reason"}}]},{name:"merge",description:"Merge a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--admin",description:"Use administrator privileges to merge a pull request that does not meet requirements"},{name:["-A","--author-email"],description:"Email text for merge commit author",args:{name:"text"}},{name:"--auto",description:"Automatically merge only after necessary requirements are met"},{name:["-b","--body"],description:"Body text for the merge commit",args:{name:"text"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-d","--delete-branch"],description:"Delete the local and remote branch after merge"},{name:"--disable-auto",description:"Disable auto-merge for this pull request"},{name:"--match-head-commit",description:"Commit SHA that the pull request head must match to allow merge",args:{name:"SHA"}},{name:["-m","--merge"],description:"Merge the commits with the base branch"},{name:["-r","--rebase"],description:"Rebase the commits onto the base branch"},{name:["-s","--squash"],description:"Squash the commits into one commit and merge it into the base branch"},{name:["-t","--subject"],description:"Subject text for the merge commit",args:{name:"text"}}]},{name:"ready",description:"Mark a pull request as ready for review",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--undo",description:'Convert a pull request to "draft"'}]},{name:"reopen",description:"Reopen a pull request",args:{name:"number | url | branch",generators:e.listPR},options:[{name:["-c","--comment"],description:"Add a reopening comment",args:{name:"comment"}}]},{name:"revert",description:"Revert a pull request",args:{name:"number | url | branch",generators:e.listPR},options:[{name:["-b","--body"],description:"Body for the revert pull request",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-d","--draft"],description:"Mark revert pull request as a draft"},{name:["-t","--title"],description:"Title for the revert pull request",args:{name:"title"}}]},{name:"review",description:"Add a review to a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:["-a","--approve"],description:"Approve pull request"},{name:["-b","--body"],description:"Specify the body of a review",args:{name:"body"}},{name:["-F","--body-file"],description:'Read body text from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:["-c","--comment"],description:"Comment on a pull request"},{name:["-r","--request-changes"],description:"Request changes on a pull request"}]},{name:"status",description:"Show status of relevant pull requests",options:[{name:["-c","--conflict-status"],description:"Display the merge conflict status of each pull request"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:U})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"unlock",description:"Unlock pull request conversation",args:{name:"number | url",generators:e.listPR}},{name:"update-branch",description:"Update a pull request branch",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:"--rebase",description:"Update PR branch by rebasing on top of latest base branch"}]},{name:"view",description:"View a pull request",args:{name:"number | url | branch",isOptional:!0,generators:e.listPR},options:[{name:["-c","--comments"],description:"View pull request comments"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:U})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open a pull request in the browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"preview",description:"Execute previews for gh features",subcommands:[{name:"prompter",description:"Execute a test program to preview the prompter",args:{name:"prompt type",isOptional:!0}}]},{name:"project",description:"Work with GitHub Projects",subcommands:[{name:"close",description:"Close a project",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--undo",description:"Reopen a closed project"}]},{name:"copy",description:"Copy a project",args:{name:"number",isOptional:!0},options:[{name:"--drafts",description:"Include draft issues when copying"},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--source-owner",description:'Login of the source owner. Use "@me" for the current user',args:{name:"source-owner"}},{name:"--target-owner",description:'Login of the target owner. Use "@me" for the current user',args:{name:"target-owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--title",description:"Title for the new project",args:{name:"title"}}]},{name:"create",description:"Create a project",options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--title",description:"Title for the project",args:{name:"title"}}]},{name:"delete",description:"Delete a project",isDangerous:!0,args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"edit",description:"Edit a project",args:{name:"number",isOptional:!0},options:[{name:["-d","--description"],description:"New description of the project",args:{name:"description"}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--readme",description:"New readme for the project",args:{name:"readme"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--title",description:"New title for the project",args:{name:"title"}},{name:"--visibility",description:"Change project visibility: {PUBLIC|PRIVATE}",args:{name:"visibility",suggestions:["PUBLIC","PRIVATE"]}}]},{name:"field-create",description:"Create a field in a project",args:{name:"number",isOptional:!0},options:[{name:"--data-type",description:"DataType of the new field.: {TEXT|SINGLE_SELECT|DATE|NUMBER}",args:{name:"data-type",suggestions:["TEXT","SINGLE_SELECT","DATE","NUMBER"]}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--name",description:"Name of the new field",args:{name:"name"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--single-select-options",description:"Options for SINGLE_SELECT data type",isRepeatable:!0,args:{name:"single-select-options"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"field-delete",description:"Delete a field in a project",options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:"--id",description:"ID of the field to delete",args:{name:"id"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"field-list",description:"List the fields in a project",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-L","--limit"],description:"Maximum number of fields to fetch",args:{name:"int",default:"30"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"item-add",description:"Add a pull request or an issue to a project",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--url",description:"URL of the issue or pull request to add to the project",args:{name:"url"}}]},{name:"item-archive",description:"Archive an item in a project",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:"--id",description:"ID of the item to archive",args:{name:"id"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--undo",description:"Unarchive an item"}]},{name:"item-create",description:"Create a draft issue item in a project",args:{name:"number",isOptional:!0},options:[{name:"--body",description:"Body for the draft issue",args:{name:"body"}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--title",description:"Title for the draft issue",args:{name:"title"}}]},{name:"item-delete",description:"Delete an item from a project by ID",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:"--id",description:"ID of the item to delete",args:{name:"id"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"item-edit",description:"Edit an item in a project",args:{name:"number",isOptional:!0},options:[{name:"--body",description:"Body of the draft issue item",args:{name:"body"}},{name:"--clear",description:"Remove field value"},{name:"--date",description:"Date value for the field (YYYY-MM-DD)",args:{name:"date"}},{name:"--field",description:"Name of the field to update",args:{name:"field"}},{name:"--field-id",description:"ID of the field to update",args:{name:"field-id"}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:"--id",description:"ID of the item to edit",args:{name:"id"}},{name:"--iteration-id",description:"ID of the iteration value to set on the field",args:{name:"iteration-id"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--number",description:"Number value for the field",args:{name:"float"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--project-id",description:"ID of the project to which the field belongs to",args:{name:"project-id"}},{name:"--single-select-option-id",description:"ID of the single select option value to set on the field",args:{name:"single-select-option-id"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--text",description:"Text value for the field",args:{name:"text"}},{name:"--title",description:"Title of the draft issue item",args:{name:"title"}},{name:"--url",description:"URL of the issue or pull request whose project item to edit",args:{name:"url"}},{name:"--value",description:"Value to set on the field named by --field"}]},{name:"item-list",description:"List the items in a project",args:{name:"number",isOptional:!0},options:[{name:"--field",description:"Name of a field to show as an extra column",isRepeatable:!0,args:{name:"field"}},{name:"--field-id",description:"ID of a field to show as an extra column",isRepeatable:!0,args:{name:"field-id"}},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-L","--limit"],description:"Maximum number of items to fetch",args:{name:"int",default:"30"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:"--query",description:'Filter items using the Projects filter syntax, e.g. "assignee:octocat -status:Done"',isRepeatable:!0,args:{name:"query"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"link",description:"Link a project to a repository or a team",args:{name:"number",isOptional:!0},options:[{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-R","--repo"],description:"The repository to be linked to this project",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-T","--team"],description:"The team to be linked to this project",args:{name:"team"}}]},{name:["list","ls"],description:"List the projects for an owner",options:[{name:"--closed",description:"Include closed projects"},{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-L","--limit"],description:"Maximum number of projects to fetch",isRepeatable:!0,args:{name:"int",default:"30"}},{name:"--owner",description:"Login of the owner",args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open projects list in the browser"}]},{name:"mark-template",description:"Mark a project as a template",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:"Login of the org owner",args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--undo",description:"Unmark the project as a template"}]},{name:"unlink",description:"Unlink a project from a repository or a team",args:{name:"number",isOptional:!0},options:[{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-R","--repo"],description:"The repository to be unlinked from this project",args:{name:"repo",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-T","--team"],description:"The team to be unlinked from this project",args:{name:"team"}}]},{name:"view",description:"View a project",args:{name:"number",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--owner",description:'Login of the owner. Use "@me" for the current user',args:{name:"owner"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open a project in the browser"}]}]},{name:"release",description:"Manage releases",subcommands:[{name:["create","new"],description:"Create a new release",args:[{name:"tag",isOptional:!0},{name:"filename... | pattern...",isOptional:!0,isVariadic:!0,template:"filepaths"}],options:[{name:"--discussion-category",description:"Start a discussion in the specified category",args:{name:"discussion-category"}},{name:["-d","--draft"],description:"Save the release as a draft instead of publishing it"},{name:"--fail-on-no-commits",description:"Fail if there are no commits since the last release (no impact on the first release)"},{name:"--generate-notes",description:"Automatically generate title and notes for the release via GitHub Release Notes API"},{name:"--latest",description:'Mark this release as "Latest" (default [automatic based on date and version]). --latest=false to explicitly NOT set as latest'},{name:["-n","--notes"],description:"Release notes",args:{name:"notes"}},{name:["-F","--notes-file"],description:'Read release notes from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--notes-from-tag",description:"Fetch notes from the tag annotation or message of commit associated with tag"},{name:"--notes-start-tag",description:"Tag to use as the starting point for generating release notes",args:{name:"notes-start-tag"}},{name:["-p","--prerelease"],description:"Mark the release as a prerelease"},{name:"--target",description:"Target branch or full commit SHA (default [main branch])",args:{name:"branch"}},{name:["-t","--title"],description:"Release title",args:{name:"title"}},{name:"--verify-tag",description:"Abort in case the git tag doesn't already exist in the remote repository"}]},{name:"delete",description:"Delete a release",isDangerous:!0,args:{name:"tag"},options:[{name:"--cleanup-tag",description:"Delete the specified tag in addition to its release"},{name:["-y","--yes"],description:"Skip the confirmation prompt"}]},{name:"delete-asset",description:"Delete an asset from a release",isDangerous:!0,args:[{name:"tag"},{name:"asset-name"}],options:[{name:["-y","--yes"],description:"Skip the confirmation prompt"}]},{name:"download",description:"Download release assets",args:{name:"tag",isOptional:!0},options:[{name:"--allow-escape-sequences",description:"Allow printing terminal escape sequences when writing an asset to standard output"},{name:["-A","--archive"],description:"Download the source code archive in the specified format (zip or tar.gz)",args:{name:"format"}},{name:"--clobber",description:"Overwrite existing files of the same name"},{name:["-D","--dir"],description:"The directory to download files into",args:{name:"directory",default:".",template:"folders"}},{name:["-O","--output"],description:'The file to write a single asset to (use "-" to write to standard output)',args:{name:"file",template:"filepaths"}},{name:["-p","--pattern"],description:"Download only assets that match a glob pattern",isRepeatable:!0,args:{name:"pattern"}},{name:"--skip-existing",description:"Skip downloading when files of the same name exist"}]},{name:"edit",description:"Edit a release",args:{name:"tag"},options:[{name:"--discussion-category",description:"Start a discussion in the specified category when publishing a draft",args:{name:"discussion-category"}},{name:"--draft",description:"Save the release as a draft instead of publishing it"},{name:"--latest",description:'Explicitly mark the release as "Latest"'},{name:["-n","--notes"],description:"Release notes",args:{name:"notes"}},{name:["-F","--notes-file"],description:'Read release notes from file (use "-" to read from standard input)',args:{name:"file",template:"filepaths"}},{name:"--prerelease",description:"Mark the release as a prerelease"},{name:"--tag",description:"The name of the tag",args:{name:"tag"}},{name:"--target",description:"Target branch or full commit SHA (default [main branch])",args:{name:"branch"}},{name:["-t","--title"],description:"Release title",args:{name:"title"}},{name:"--verify-tag",description:"Abort in case the git tag doesn't already exist in the remote repository"}]},{name:["list","ls"],description:"List releases in a repository",options:[{name:"--exclude-drafts",description:"Exclude draft releases"},{name:"--exclude-pre-releases",description:"Exclude pre-releases"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ke})}},{name:["-L","--limit"],description:"Maximum number of items to fetch",args:{name:"int",default:"30"}},{name:["-O","--order"],description:"Order of releases returned: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"upload",description:"Upload assets to a release",args:[{name:"tag"},{name:"files",isVariadic:!0,template:"filepaths"}],options:[{name:"--clobber",description:"Delete and re-upload existing assets of the same name"}]},{name:"verify",description:"Verify the attestation for a release",args:{name:"tag",isOptional:!0},options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"verify-asset",description:"Verify that a given asset originated from a release",args:[{name:"tag",isOptional:!0},{name:"file-path",template:"filepaths"}],options:[{name:"--format",description:"Output format: {json}",args:{name:"format",suggestions:["json"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"view",description:"View information about a release",args:{name:"tag",isOptional:!0},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Qe})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open the release in the browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"repo",description:"Manage repositories",subcommands:[{name:"archive",description:"Archive a repository",isDangerous:!0,args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-y","--yes"],description:"Skip the confirmation prompt"},{name:"--confirm",description:"Skip the confirmation prompt",deprecated:{description:"Use --yes instead"}}]},{name:"autolink",description:"Manage autolink references",subcommands:[{name:["create","new"],description:"Create a new autolink reference",args:[{name:"keyPrefix"},{name:"urlTemplate"}],options:[{name:["-n","--numeric"],description:"Mark autolink as numeric"}]},{name:"delete",description:"Delete an autolink reference",isDangerous:!0,args:{name:"id"},options:[{name:"--yes",description:"Confirm deletion without prompting"}]},{name:["list","ls"],description:"List autolink references for a GitHub repository",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ae})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"List autolink references in the web browser"}]},{name:"view",description:"View an autolink reference",args:{name:"id"},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ae})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"clone",description:"Clone a repository locally",args:[{name:"repository",generators:[e.listRepositories,e.listCustomRepositories]},{name:"directory",isOptional:!0,template:"folders"}],options:[{name:"--no-upstream",description:"Do not add an upstream remote when cloning a fork"},{name:["-u","--upstream-remote-name"],description:"Upstream remote name when cloning a fork",args:{name:"upstream-remote-name",default:"upstream"}},H]},{name:["create","new"],description:"Create a new repository",args:{name:"name",isOptional:!0},options:[{name:"--add-readme",description:"Add a README file to the new repository"},{name:["-c","--clone"],description:"Clone the new repository to the current directory"},{name:["-d","--description"],description:"Description of the repository",args:{name:"description"}},{name:"--disable-issues",description:"Disable issues in the new repository"},{name:"--disable-wiki",description:"Disable wiki in the new repository"},{name:["-g","--gitignore"],description:"Specify a gitignore template for the repository",args:{name:"gitignore"}},{name:["-h","--homepage"],description:"Repository home page URL",args:{name:"URL"}},{name:"--include-all-branches",description:"Include all branches from template repository"},{name:"--internal",description:"Make the new repository internal"},{name:["-l","--license"],description:"Specify an Open Source License for the repository",args:{name:"license"}},{name:"--private",description:"Make the new repository private"},{name:"--public",description:"Make the new repository public"},{name:"--push",description:"Push local commits to the new repository"},{name:["-r","--remote"],description:"Specify remote name for the new repository",args:{name:"remote"}},{name:["-s","--source"],description:"Specify path to local repository to use as source",args:{name:"source"}},{name:["-t","--team"],description:"The name of the organization team to be granted access",args:{name:"name"}},{name:["-p","--template"],description:"Make the new repository based on a template repository",args:{name:"repository"}},{name:["-y","--confirm"],description:"Skip the confirmation prompt",deprecated:{description:"Pass any argument to skip confirmation prompt"}}]},{name:"delete",description:"Delete a repository",isDangerous:!0,args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:"--yes",description:"Confirm deletion without prompting"},{name:"--confirm",description:"Confirm deletion without prompting",deprecated:{description:"Use --yes instead"}}]},{name:"deploy-key",description:"Manage deploy keys in a repository",subcommands:[{name:"add",description:"Add a deploy key to a GitHub repository",args:{name:"key-file",template:"filepaths"},options:[{name:["-w","--allow-write"],description:"Allow write access for the key"},{name:["-t","--title"],description:"Title of the new key",args:{name:"title"}}]},{name:"delete",description:"Delete a deploy key from a GitHub repository",isDangerous:!0,args:{name:"key-id"}},{name:["list","ls"],description:"List deploy keys in a GitHub repository",options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ye})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"edit",description:"Edit repository settings",args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:"--accept-visibility-change-consequences",description:"Accept the consequences of changing the repository visibility"},{name:"--add-topic",description:"Add repository topic",isRepeatable:!0,args:{name:"add-topic"}},{name:"--allow-forking",description:"Allow forking of an organization repository"},{name:"--allow-update-branch",description:"Allow a pull request head branch that is behind its base branch to be updated"},{name:"--default-branch",description:"Set the default branch name for the repository",args:{name:"name"}},{name:"--delete-branch-on-merge",description:"Delete head branch when pull requests are merged"},{name:["-d","--description"],description:"Description of the repository",args:{name:"description"}},{name:"--enable-advanced-security",description:"Enable advanced security in the repository"},{name:"--enable-auto-merge",description:"Enable auto-merge functionality"},{name:"--enable-discussions",description:"Enable discussions in the repository"},{name:"--enable-issues",description:"Enable issues in the repository"},{name:"--enable-merge-commit",description:"Enable merging pull requests via merge commit"},{name:"--enable-projects",description:"Enable projects in the repository"},{name:"--enable-rebase-merge",description:"Enable merging pull requests via rebase"},{name:"--enable-secret-scanning",description:"Enable secret scanning in the repository"},{name:"--enable-secret-scanning-push-protection",description:"Enable secret scanning push protection in the repository. Secret scanning must be enabled first"},{name:"--enable-squash-merge",description:"Enable merging pull requests via squashed commit"},{name:"--enable-wiki",description:"Enable wiki in the repository"},{name:["-h","--homepage"],description:"Repository home page URL",args:{name:"URL"}},{name:"--remove-topic",description:"Remove repository topic",isRepeatable:!0,args:{name:"remove-topic"}},{name:"--squash-merge-commit-message",description:"The default value for a squash merge commit message: {default|pr-title|pr-title-commits|pr-title-description}",args:{name:"squash-merge-commit-message",suggestions:["default","pr-title","pr-title-commits","pr-title-description"]}},{name:"--template",description:"Make the repository available as a template repository"},{name:"--visibility",description:"Change the visibility of the repository to {public,private,internal}",args:{name:"visibility"}}]},{name:"fork",description:"Create a fork of a repository",args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:"--clone",description:"Clone the fork"},{name:"--default-branch-only",description:"Only include the default branch in the fork"},{name:"--fork-name",description:"Rename the forked repository",args:{name:"fork-name"}},{name:"--org",description:"Create the fork in an organization",args:{name:"org"}},{name:"--remote",description:"Add a git remote for the fork"},{name:"--remote-name",description:"Specify the name for the new remote",args:{name:"remote-name",default:"origin"}},H]},{name:"gitignore",description:"List and view available repository gitignore templates",subcommands:[{name:["list","ls"],description:"List available repository gitignore templates"},{name:"view",description:"View an available repository gitignore template",args:{name:"template"}}]},{name:"license",description:"Explore repository licenses",subcommands:[{name:["list","ls"],description:"List common repository licenses"},{name:"view",description:"View a specific repository license",args:{name:"license-key | spdx-id"},options:[{name:["-w","--web"],description:"Open https://choosealicense.com/ in the browser"}]}]},{name:["list","ls"],description:"List repositories owned by user or organization",args:{name:"owner",isOptional:!0},options:[{name:"--archived",description:"Show only archived repositories"},{name:"--fork",description:"Show only forks"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:re})}},{name:["-l","--language"],description:"Filter by primary coding language",args:{name:"language"}},{name:["-L","--limit"],description:"Maximum number of repositories to list",args:{name:"int",default:"30"}},{name:"--no-archived",description:"Omit archived repositories"},{name:"--source",description:"Show only non-forks"},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--topic",description:"Filter by topic",isRepeatable:!0,args:{name:"topic"}},{name:"--visibility",description:"Filter by repository visibility: {public|private|internal}",args:{name:"visibility",suggestions:["public","private","internal"]}},{name:"--private",description:"Show only private repositories",deprecated:{description:"Use --visibility=private instead"}},{name:"--public",description:"Show only public repositories",deprecated:{description:"Use --visibility=public instead"}}]},{name:"read-dir",description:"List a directory in a repository (preview)",args:{name:"path",isOptional:!0},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Xe})}},{name:"--ref",description:"The branch, tag, or commit to list from",args:{name:"ref"}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"read-file",description:"Read a file from a repository (preview)",args:{name:"path"},options:[{name:"--allow-escape-sequences",description:"Allow printing terminal escape sequences"},{name:"--clobber",description:"Overwrite the output path if it already exists"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:Ze})}},{name:["-o","--output"],description:"Write the file to a path instead of stdout",args:{name:"path",template:"filepaths"}},{name:"--ref",description:"The branch, tag, or commit to read from",args:{name:"ref"}},{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"rename",description:"Rename a repository",args:{name:"new-name",isOptional:!0},options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:["-y","--yes"],description:"Skip the confirmation prompt"},{name:"--confirm",description:"Skip confirmation prompt",deprecated:{description:"Use --yes instead"}}]},{name:"set-default",description:"Configure default repository for this directory",args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-u","--unset"],description:"Unset the current default repository"},{name:["-v","--view"],description:"View the current default repository"}]},{name:"sync",description:"Sync a repository",args:{name:"destination-repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-b","--branch"],description:"Branch to sync (default [default branch])",args:{name:"branch"}},{name:"--force",description:"Hard reset the branch of the destination repository to match the source repository"},{name:["-s","--source"],description:"Source repository",args:{name:"source"}}]},{name:"unarchive",description:"Unarchive a repository",args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-y","--yes"],description:"Skip the confirmation prompt"}]},{name:"view",description:"View a repository",args:{name:"repository",isOptional:!0,generators:[e.listRepositories,e.listCustomRepositories]},options:[{name:["-b","--branch"],description:"View a specific branch of the repository",args:{name:"branch"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:re})}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open a repository in the browser"}]}]},{name:["ruleset","rs"],description:"View info about repo rulesets",subcommands:[{name:"check",description:"View rules that would apply to a given branch",args:{name:"branch",isOptional:!0,generators:e.remoteBranches},options:[{name:"--default",description:"Check rules on default branch"},{name:["-w","--web"],description:"Open the branch rules page in a web browser"}]},{name:["list","ls"],description:"List rulesets for a repository or organization",options:[{name:["-L","--limit"],description:"Maximum number of rulesets to list",args:{name:"int",default:"30"}},{name:["-o","--org"],description:"List organization-wide rulesets for the provided organization",args:{name:"org"}},{name:["-p","--parents"],description:"Whether to include rulesets configured at higher levels that also apply (default true)"},{name:["-w","--web"],description:"Open the list of rulesets in the web browser"}]},{name:"view",description:"View information about a ruleset",args:{name:"ruleset-id",isOptional:!0},options:[{name:["-o","--org"],description:"Organization name if the provided ID is an organization-level ruleset",args:{name:"org"}},{name:["-p","--parents"],description:"Whether to include rulesets configured at higher levels that also apply (default true)"},{name:["-w","--web"],description:"Open the ruleset in the browser"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"run",description:"View details about workflow runs",subcommands:[{name:"cancel",description:"Cancel a workflow run",args:{name:"run-id",isOptional:!0},options:[{name:"--force",description:"Force cancel a workflow run"}]},{name:"delete",description:"Delete a workflow run",isDangerous:!0,args:{name:"run-id",isOptional:!0}},{name:"download",description:"Download artifacts generated by a workflow run",args:{name:"run-id",isOptional:!0},options:[{name:["-D","--dir"],description:"The directory to download artifacts into",args:{name:"dir",default:"."}},{name:["-n","--name"],description:"Download artifacts that match any of the given names",isRepeatable:!0,args:{name:"name"}},{name:["-p","--pattern"],description:"Download artifacts that match a glob pattern",isRepeatable:!0,args:{name:"pattern"}}]},{name:["list","ls"],description:"List recent workflow runs",options:[{name:["-a","--all"],description:"Include disabled workflows"},{name:["-b","--branch"],description:"Filter runs by branch",args:{name:"branch"}},{name:["-c","--commit"],description:"Filter runs by the SHA of the commit",args:{name:"SHA"}},{name:"--created",description:"Filter runs by the date it was created",args:{name:"date"}},{name:["-e","--event"],description:"Filter runs by which event triggered the run",args:{name:"event"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:et})}},{name:["-L","--limit"],description:"Maximum number of runs to fetch",args:{name:"int",default:"20"}},{name:["-s","--status"],description:"Filter runs by status: {queued|completed|in_progress|requested|waiting|pending|action_required|cancelled|failure|neutral|skipped|stale|startup_failure|success|timed_out}",args:{name:"status",suggestions:["queued","completed","in_progress","requested","waiting","pending","action_required","cancelled","failure","neutral","skipped","stale","startup_failure","success","timed_out"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-u","--user"],description:"Filter runs by user who triggered the run",args:{name:"user"}},{name:["-w","--workflow"],description:"Filter runs by workflow",args:{name:"workflow"}}]},{name:"rerun",description:"Rerun a run",args:{name:"run-id",isOptional:!0},options:[{name:["-d","--debug"],description:"Rerun with debug logging"},{name:"--failed",description:"Rerun only failed jobs, including dependencies"},{name:["-j","--job"],description:"Rerun a specific job ID from a run, including dependencies",args:{name:"job"}}]},{name:"view",description:"View a summary of a workflow run",args:{name:"run-id",isOptional:!0},options:[{name:["-a","--attempt"],description:"The attempt number of the workflow run",args:{name:"uint"}},{name:"--exit-status",description:"Exit with non-zero status if run failed"},{name:["-j","--job"],description:"View a specific job ID from a run",args:{name:"job"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:tt})}},{name:"--log",description:"View full log for either a run or specific job"},{name:"--log-failed",description:"View the log for any failed steps in a run or specific job"},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-v","--verbose"],description:"Show job steps"},{name:["-w","--web"],description:"Open run in the browser"}]},{name:"watch",description:"Watch a run until it completes, showing its progress",args:{name:"run-id"},options:[{name:"--compact",description:"Show only relevant/failed steps"},{name:"--exit-status",description:"Exit with non-zero status if run fails"},{name:["-i","--interval"],description:"Refresh interval in seconds",args:{name:"int",default:"3"}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"search",description:"Search for repositories, issues, and pull requests",subcommands:[{name:"code",description:"Search within code",args:{name:"query"},options:[{name:"--extension",description:"Filter on file extension",args:{name:"extension"}},{name:"--filename",description:"Filter on filename",args:{name:"filename"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:it})}},{name:"--language",description:"Filter results by language",args:{name:"language"}},{name:["-L","--limit"],description:"Maximum number of code results to fetch",args:{name:"int",default:"30"}},{name:"--match",description:"Restrict search to file contents or file path: {file|path}",isRepeatable:!0,args:{name:"match",suggestions:["file","path"]}},{name:"--owner",description:"Filter on owner",isRepeatable:!0,args:{name:"owner"}},{name:["-R","--repo"],description:"Filter on repository, in OWNER/REPO format",args:{name:"OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--size",description:"Filter on size range, in kilobytes",args:{name:"size"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-w","--web"],description:"Open the search query in the web browser"}]},{name:"commits",description:"Search for commits",args:{name:"query",isOptional:!0},options:[{name:"--author",description:"Filter by author",args:{name:"author"}},{name:"--author-date",description:"Filter based on authored date",args:{name:"date"}},{name:"--author-email",description:"Filter on author email",args:{name:"author-email"}},{name:"--author-name",description:"Filter on author name",args:{name:"author-name"}},{name:"--committer",description:"Filter by committer",args:{name:"committer"}},{name:"--committer-date",description:"Filter based on committed date",args:{name:"date"}},{name:"--committer-email",description:"Filter on committer email",args:{name:"committer-email"}},{name:"--committer-name",description:"Filter on committer name",args:{name:"committer-name"}},{name:"--hash",description:"Filter by commit hash",args:{name:"hash"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:st})}},{name:["-L","--limit"],description:"Maximum number of commits to fetch",args:{name:"int",default:"30"}},{name:"--merge",description:"Filter on merge commits"},{name:"--order",description:"Order of commits returned, ignored unless '--sort' flag is specified: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:"--owner",description:"Filter on repository owner",isRepeatable:!0,args:{name:"owner"}},{name:"--parent",description:"Filter by parent hash",args:{name:"parent"}},{name:["-R","--repo"],description:"Filter on repository, in OWNER/REPO format",args:{name:"OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--sort",description:"Sort fetched commits: {author-date|committer-date}",args:{name:"sort",default:"best-match",suggestions:["author-date","committer-date"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--tree",description:"Filter by tree hash",args:{name:"tree"}},{name:"--visibility",description:"Filter based on repository visibility: {public|private|internal}",isRepeatable:!0,args:{name:"visibility",suggestions:["public","private","internal"]}},{name:["-w","--web"],description:"Open the search query in the web browser"}]},{name:"issues",description:"Search for issues",args:{name:"query",isOptional:!0},options:[{name:"--app",description:"Filter by GitHub App author",args:{name:"app"}},{name:"--archived",description:"Filter based on the repository archived state {true|false}"},{name:"--assignee",description:"Filter by assignee",args:{name:"assignee"}},{name:"--author",description:"Filter by author (use --app to filter by a GitHub App)",args:{name:"author"}},{name:"--closed",description:"Filter on closed at date",args:{name:"date"}},{name:"--commenter",description:"Filter based on comments by user",args:{name:"user"}},{name:"--comments",description:"Filter on number of comments",args:{name:"number"}},{name:"--created",description:"Filter based on created at date",args:{name:"date"}},{name:"--include-prs",description:"Include pull requests in results"},{name:"--interactions",description:"Filter on number of reactions and comments",args:{name:"number"}},{name:"--involves",description:"Filter based on involvement of user",args:{name:"user"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:nt})}},{name:"--label",description:"Filter on label",isRepeatable:!0,args:{name:"label"}},{name:"--language",description:"Filter based on the coding language",args:{name:"language"}},{name:["-L","--limit"],description:"Maximum number of results to fetch",args:{name:"int",default:"30"}},{name:"--locked",description:"Filter on locked conversation status"},{name:"--match",description:"Restrict search to specific field of issue: {title|body|comments}",isRepeatable:!0,args:{name:"match",suggestions:["title","body","comments"]}},{name:"--mentions",description:"Filter based on user mentions",args:{name:"user"}},{name:"--milestone",description:"Filter by milestone title",args:{name:"title"}},{name:"--no-assignee",description:"Filter on missing assignee"},{name:"--no-label",description:"Filter on missing label"},{name:"--no-milestone",description:"Filter on missing milestone"},{name:"--no-project",description:"Filter on missing project"},{name:"--order",description:"Order of results returned, ignored unless '--sort' flag is specified: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:"--owner",description:"Filter on repository owner",isRepeatable:!0,args:{name:"owner"}},{name:"--project",description:"Filter on project board owner/number",args:{name:"owner/number"}},{name:"--reactions",description:"Filter on number of reactions",args:{name:"number"}},{name:["-R","--repo"],description:"Filter on repository, in OWNER/REPO format",args:{name:"OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--search-type",description:"Type of issue search to perform: {lexical|semantic|hybrid}",args:{name:"search-type",default:"lexical",suggestions:["lexical","semantic","hybrid"]}},{name:"--sort",description:"Sort fetched results: {comments|created|interactions|reactions|reactions-+1|reactions--1|reactions-heart|reactions-smile|reactions-tada|reactions-thinking_face|updated}",args:{name:"sort",default:"best-match"}},{name:"--state",description:"Filter based on state: {open|closed}",args:{name:"state",suggestions:["open","closed"]}},{name:"--team-mentions",description:"Filter based on team mentions",args:{name:"team-mentions"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--updated",description:"Filter on last updated at date",args:{name:"date"}},{name:"--visibility",description:"Filter based on repository visibility: {public|private|internal}",isRepeatable:!0,args:{name:"visibility",suggestions:["public","private","internal"]}},{name:["-w","--web"],description:"Open the search query in the web browser"}]},{name:"prs",description:"Search for pull requests",args:{name:"query",isOptional:!0},options:[{name:"--app",description:"Filter by GitHub App author",args:{name:"app"}},{name:"--archived",description:"Filter based on the repository archived state {true|false}"},{name:"--assignee",description:"Filter by assignee",args:{name:"assignee"}},{name:"--author",description:"Filter by author (use --app to filter by a GitHub App)",args:{name:"author"}},{name:["-B","--base"],description:"Filter on base branch name",args:{name:"base"}},{name:"--checks",description:"Filter based on status of the checks: {pending|success|failure}",args:{name:"checks",suggestions:["pending","success","failure"]}},{name:"--closed",description:"Filter on closed at date",args:{name:"date"}},{name:"--commenter",description:"Filter based on comments by user",args:{name:"user"}},{name:"--comments",description:"Filter on number of comments",args:{name:"number"}},{name:"--created",description:"Filter based on created at date",args:{name:"date"}},{name:"--draft",description:"Filter based on draft state"},{name:["-H","--head"],description:"Filter on head branch name",args:{name:"head"}},{name:"--interactions",description:"Filter on number of reactions and comments",args:{name:"number"}},{name:"--involves",description:"Filter based on involvement of user",args:{name:"user"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:at})}},{name:"--label",description:"Filter on label",isRepeatable:!0,args:{name:"label"}},{name:"--language",description:"Filter based on the coding language",args:{name:"language"}},{name:["-L","--limit"],description:"Maximum number of results to fetch",args:{name:"int",default:"30"}},{name:"--locked",description:"Filter on locked conversation status"},{name:"--match",description:"Restrict search to specific field of issue: {title|body|comments}",isRepeatable:!0,args:{name:"match",suggestions:["title","body","comments"]}},{name:"--mentions",description:"Filter based on user mentions",args:{name:"user"}},{name:"--merged",description:"Filter based on merged state"},{name:"--merged-at",description:"Filter on merged at date",args:{name:"date"}},{name:"--milestone",description:"Filter by milestone title",args:{name:"title"}},{name:"--no-assignee",description:"Filter on missing assignee"},{name:"--no-label",description:"Filter on missing label"},{name:"--no-milestone",description:"Filter on missing milestone"},{name:"--no-project",description:"Filter on missing project"},{name:"--order",description:"Order of results returned, ignored unless '--sort' flag is specified: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:"--owner",description:"Filter on repository owner",isRepeatable:!0,args:{name:"owner"}},{name:"--project",description:"Filter on project board owner/number",args:{name:"owner/number"}},{name:"--reactions",description:"Filter on number of reactions",args:{name:"number"}},{name:["-R","--repo"],description:"Filter on repository, in OWNER/REPO format",args:{name:"OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]}},{name:"--review",description:"Filter based on review status: {none|required|approved|changes_requested}",args:{name:"review",suggestions:["none","required","approved","changes_requested"]}},{name:"--review-requested",description:"Filter on user or team requested to review",args:{name:"user"}},{name:"--reviewed-by",description:"Filter on user who reviewed",args:{name:"user"}},{name:"--sort",description:"Sort fetched results: {comments|reactions|reactions-+1|reactions--1|reactions-smile|reactions-thinking_face|reactions-heart|reactions-tada|interactions|created|updated}",args:{name:"sort",default:"best-match"}},{name:"--state",description:"Filter based on state: {open|closed}",args:{name:"state",suggestions:["open","closed"]}},{name:"--team-mentions",description:"Filter based on team mentions",args:{name:"team-mentions"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--updated",description:"Filter on last updated at date",args:{name:"date"}},{name:"--visibility",description:"Filter based on repository visibility: {public|private|internal}",isRepeatable:!0,args:{name:"visibility",suggestions:["public","private","internal"]}},{name:["-w","--web"],description:"Open the search query in the web browser"}]},{name:"repos",description:"Search for repositories",args:{name:"query",isOptional:!0},options:[{name:"--archived",description:"Filter based on the repository archived state {true|false}"},{name:"--created",description:"Filter based on created at date",args:{name:"date"}},{name:"--followers",description:"Filter based on number of followers",args:{name:"number"}},{name:"--forks",description:"Filter on number of forks",args:{name:"number"}},{name:"--good-first-issues",description:"Filter on number of issues with the 'good first issue' label",args:{name:"number"}},{name:"--help-wanted-issues",description:"Filter on number of issues with the 'help wanted' label",args:{name:"number"}},{name:"--include-forks",description:"Include forks in fetched repositories: {false|true|only}",args:{name:"include-forks",suggestions:["false","true","only"]}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ne})}},{name:"--language",description:"Filter based on the coding language",args:{name:"language"}},{name:"--license",description:"Filter based on license type",isRepeatable:!0,args:{name:"license"}},{name:["-L","--limit"],description:"Maximum number of repositories to fetch",args:{name:"int",default:"30"}},{name:"--match",description:"Restrict search to specific field of repository: {name|description|readme}",isRepeatable:!0,args:{name:"match",suggestions:["name","description","readme"]}},{name:"--number-topics",description:"Filter on number of topics",args:{name:"number"}},{name:"--order",description:"Order of repositories returned, ignored unless '--sort' flag is specified: {asc|desc}",args:{name:"order",default:"desc",suggestions:["asc","desc"]}},{name:"--owner",description:"Filter on owner",isRepeatable:!0,args:{name:"owner"}},{name:"--size",description:"Filter on a size range, in kilobytes",args:{name:"size"}},{name:"--sort",description:"Sort fetched repositories: {forks|help-wanted-issues|stars|updated}",args:{name:"sort",default:"best-match",suggestions:["forks","help-wanted-issues","stars","updated"]}},{name:"--stars",description:"Filter on number of stars",args:{name:"number"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:"--topic",description:"Filter on topic",isRepeatable:!0,args:{name:"topic"}},{name:"--updated",description:"Filter on last updated at date",args:{name:"date"}},{name:"--visibility",description:"Filter based on visibility: {public|private|internal}",isRepeatable:!0,args:{name:"visibility",suggestions:["public","private","internal"]}},{name:["-w","--web"],description:"Open the search query in the web browser"}]}]},{name:"secret",description:"Manage GitHub secrets",subcommands:[{name:["delete","remove"],description:"Delete secrets",isDangerous:!0,args:{name:"secret-name"},options:[{name:["-a","--app"],description:"Delete a secret for a specific application: {actions|agents|codespaces|dependabot}",args:{name:"app",suggestions:["actions","agents","codespaces","dependabot"]}},{name:["-e","--env"],description:"Delete a secret for an environment",args:{name:"env"}},{name:["-o","--org"],description:"Delete a secret for an organization",args:{name:"org"}},{name:["-u","--user"],description:"Delete a secret for your user"}]},{name:["list","ls"],description:"List secrets",options:[{name:["-a","--app"],description:"List secrets for a specific application: {actions|agents|codespaces|dependabot}",args:{name:"app",suggestions:["actions","agents","codespaces","dependabot"]}},{name:["-e","--env"],description:"List secrets for an environment",args:{name:"env"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:rt})}},{name:["-o","--org"],description:"List secrets for an organization",args:{name:"org"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}},{name:["-u","--user"],description:"List a secret for your user"}]},{name:"set",description:"Create or update secrets",args:{name:"secret-name"},options:[{name:["-a","--app"],description:"Set the application for a secret: {actions|agents|codespaces|dependabot}",args:{name:"app",suggestions:["actions","agents","codespaces","dependabot"]}},{name:["-b","--body"],description:"The value for the secret (reads from standard input if not specified)",args:{name:"body"}},{name:["-e","--env"],description:"Set deployment environment secret",args:{name:"environment"}},{name:["-f","--env-file"],description:"Load secret names and values from a dotenv-formatted file",args:{name:"file",template:"filepaths"}},{name:"--no-repos-selected",description:"No repositories can access the organization secret"},{name:"--no-store",description:"Print the encrypted, base64-encoded value instead of storing it on GitHub"},{name:["-o","--org"],description:"Set organization secret",args:{name:"organization"}},{name:["-r","--repos"],description:"List of repositories that can access an organization or user secret",args:{name:"repositories"}},{name:["-u","--user"],description:"Set a secret for your user"},{name:["-v","--visibility"],description:"Set visibility for an organization secret: {all|private|selected}",args:{name:"visibility",default:"private",suggestions:["all","private","selected"]}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:["skill","skills"],description:"Install and manage agent skills (preview)",subcommands:[{name:["install","add"],description:"Install agent skills from a GitHub repository (preview)",args:[{name:"repository"},{name:"skill[@version]",isOptional:!0}],options:[{name:"--agent",description:"Target agent (see supported values above)",args:{name:"agent",suggestions:oe}},{name:"--all",description:"Install all skills without prompting for skill selection"},{name:"--allow-hidden-dirs",description:"Include skills in hidden directories (e.g. .claude/skills/, .agents/skills/)"},{name:"--dir",description:"Install to a custom directory (overrides --agent and --scope)",args:{name:"dir"}},{name:["-f","--force"],description:"Overwrite existing skills without prompting"},{name:"--from-local",description:"Treat the argument as a local directory path instead of a repository"},{name:"--pin",description:"Pin to a specific git tag or commit SHA",args:{name:"pin"}},{name:"--scope",description:"Installation scope: {project|user}",args:{name:"scope",default:"project",suggestions:["project","user"]}},{name:"--upstream",description:"Install from the upstream source when a re-published skill is detected"}]},{name:["list","ls"],description:"List installed skills (preview)",options:[{name:"--agent",description:"Filter by target agent: {github-copilot|claude-code|cursor|codex|gemini-cli|antigravity|antigravity-cli|antigravity2.0|adal|amp|augment|bob|cline|codebuddy|command-code|continue|cortex|crush|deepagents|devin|droid|firebender|goose|grok|iflow-cli|junie|kilo|kimi-cli|kiro-cli|kode|mcpjam|mistral-vibe|mux|neovate|openclaw|opencode|openhands|pi|pochi|qoder|qwen-code|replit|roo|trae|trae-cn|universal|warp|zencoder}",args:{name:"agent",suggestions:oe}},{name:"--dir",description:"Scan a custom directory for installed skills",args:{name:"dir"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:ot})}},{name:"--scope",description:"Filter by installation scope: {project|user}",args:{name:"scope",suggestions:["project","user"]}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:["preview","show"],description:"Preview a skill from a GitHub repository (preview)",args:[{name:"repository"},{name:"skill",isOptional:!0}],options:[{name:"--allow-hidden-dirs",description:"Include skills in hidden directories (e.g. .claude/skills/, .agents/skills/)"}]},{name:"publish",description:"Validate and publish skills to a GitHub repository (preview)",args:{name:"directory",isOptional:!0,template:"folders"},options:[{name:"--dry-run",description:"Validate without publishing"},{name:"--fix",description:"Auto-fix issues where possible without publishing (e.g. strip install metadata)"},{name:"--tag",description:"Version tag for the release (e.g. v1.0.0)",args:{name:"tag"}}]},{name:"search",description:"Search for skills across GitHub (preview)",args:{name:"query"},options:[{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:mt})}},{name:["-L","--limit"],description:"Maximum number of results per page",args:{name:"int",default:"15"}},{name:"--owner",description:"Filter results to a specific GitHub user or organization",args:{name:"owner"}},{name:"--page",description:"Page number of results to fetch",args:{name:"int",default:"1"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"update",description:"Update installed skills to their latest versions (preview)",args:{name:"skill...",isOptional:!0,isVariadic:!0},options:[{name:"--all",description:"Update all skills without prompting"},{name:"--dir",description:"Scan a custom directory for installed skills",args:{name:"dir"}},{name:"--dry-run",description:"Report available updates without modifying files"},{name:"--force",description:"Re-download even if already up to date"},{name:"--unpin",description:"Clear pinned version and include pinned skills in update"}]}]},{name:"ssh-key",description:"Manage SSH keys",subcommands:[{name:"add",description:"Add an SSH key to your GitHub account",args:{name:"key-file",isOptional:!0,template:"filepaths"},options:[{name:["-t","--title"],description:"Title for the new key",args:{name:"title"}},{name:"--type",description:"Type of the ssh key: {authentication|signing}",args:{name:"type",default:"authentication",suggestions:["authentication","signing"]}}]},{name:"delete",description:"Delete an SSH key from your GitHub account",isDangerous:!0,args:{name:"id"},options:[{name:["-y","--yes"],description:"Skip the confirmation prompt"}]},{name:["list","ls"],description:"Lists SSH keys in your GitHub account"}]},{name:"status",description:"Print information about relevant issues, pull requests, and notifications across repositories",options:[{name:["-e","--exclude"],description:"Comma separated list of repos to exclude in owner/name format",isRepeatable:!0,args:{name:"exclude"}},{name:["-o","--org"],description:"Report status within an organization",args:{name:"org"}}]},{name:"variable",description:"Manage GitHub Actions variables",subcommands:[{name:["delete","remove"],description:"Delete variables",isDangerous:!0,args:{name:"variable-name"},options:[{name:["-e","--env"],description:"Delete a variable for an environment",args:{name:"env"}},{name:["-o","--org"],description:"Delete a variable for an organization",args:{name:"org"}}]},{name:"get",description:"Get variables",args:{name:"variable-name"},options:[{name:["-e","--env"],description:"Get a variable for an environment",args:{name:"env"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:me})}},{name:["-o","--org"],description:"Get a variable for an organization",args:{name:"org"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:["list","ls"],description:"List variables",options:[{name:["-e","--env"],description:"List variables for an environment",args:{name:"env"}},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:me})}},{name:["-o","--org"],description:"List variables for an organization",args:{name:"org"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"set",description:"Create or update variables",args:{name:"variable-name"},options:[{name:["-b","--body"],description:"The value for the variable (reads from standard input if not specified)",args:{name:"body"}},{name:["-e","--env"],description:"Set deployment environment variable",args:{name:"environment"}},{name:["-f","--env-file"],description:"Load variable names and values from a dotenv-formatted file",args:{name:"file",template:"filepaths"}},{name:["-o","--org"],description:"Set organization variable",args:{name:"organization"}},{name:["-r","--repos"],description:"List of repositories that can access an organization variable",args:{name:"repositories"}},{name:["-v","--visibility"],description:"Set visibility for an organization variable: {all|private|selected}",args:{name:"visibility",default:"private",suggestions:["all","private","selected"]}}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"workflow",description:"View details about GitHub Actions workflows",subcommands:[{name:"disable",description:"Disable a workflow",args:{name:"workflow-id | workflow-name",isOptional:!0}},{name:"enable",description:"Enable a workflow",args:{name:"workflow-id | workflow-name",isOptional:!0}},{name:["list","ls"],description:"List workflows",options:[{name:["-a","--all"],description:"Include disabled workflows"},{name:["-q","--jq"],description:"Filter JSON output using a jq expression",args:{name:"expression"}},{name:"--json",description:"Output JSON with the specified fields",args:{name:"fields",generators:(0,o.valueList)({values:pt})}},{name:["-L","--limit"],description:"Maximum number of workflows to fetch",args:{name:"int",default:"50"}},{name:["-t","--template"],description:'Format JSON output using a Go template; see "gh help formatting"',args:{name:"template"}}]},{name:"run",description:"Run a workflow by creating a workflow_dispatch event",args:{name:"workflow-id | workflow-name",isOptional:!0},options:[{name:["-F","--field"],description:'Add a string parameter in key=value format, respecting @ syntax (see "gh help api")',isRepeatable:!0,args:{name:"key=value"}},{name:"--json",description:"Read workflow inputs as JSON via STDIN"},{name:["-f","--raw-field"],description:"Add a string parameter in key=value format",isRepeatable:!0,args:{name:"key=value"}},{name:["-r","--ref"],description:"Branch or tag name which contains the version of the workflow file you'd like to run",args:{name:"ref"}}]},{name:"view",description:"View the summary of a workflow",args:{name:"workflow-id | workflow-name | filename",isOptional:!0,template:"filepaths"},options:[{name:["-r","--ref"],description:"The branch or tag name which contains the version of the workflow file you'd like to view",args:{name:"ref"}},{name:["-w","--web"],description:"Open workflow in the browser"},{name:["-y","--yaml"],description:"View the workflow yaml file"}]}],options:[{name:["-R","--repo"],description:"Select another repository using the [HOST/]OWNER/REPO format",args:{name:"[HOST/]OWNER/REPO",generators:[e.listRepositories,e.listCustomRepositories]},isPersistent:!0}]},{name:"help",description:"Help about any command or topic",args:{name:"topic",isOptional:!0,suggestions:[{name:"accessibility",description:"Learn about GitHub CLI's accessibility experiences"},{name:"actions",description:"Learn about working with GitHub Actions"},{name:"environment",description:"Environment variables that can be used with gh"},{name:"exit-codes",description:"Exit codes used by gh"},{name:"formatting",description:"Formatting options for JSON data exported from gh"},{name:"mintty",description:"Information about using gh with MinTTY"},{name:"reference",description:"A comprehensive reference of all gh commands"},{name:"telemetry",description:"Information about telemetry in gh"}]}}],options:[{name:"--help",description:"Show help for command",isPersistent:!0},{name:"--version",description:"Show gh version"}]},bt=ct;export{bt as default};