@tabsmith/autocomplete-specs 1.0.0 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@magnolia/cli.js +2 -2
- package/build/@withfig/autocomplete-tools.js +2 -2
- package/build/airflow.js +2 -2
- package/build/ansible-playbook.js +2 -2
- package/build/apt.js +4 -4
- package/build/asr.js +2 -2
- package/build/bun.js +9 -9
- package/build/cargo.js +4 -4
- package/build/cd.js +2 -2
- package/build/chezmoi.js +2 -2
- package/build/cloudflared.js +2 -2
- package/build/coda.js +3 -3
- package/build/codesign.js +2 -2
- package/build/dapr.js +2 -2
- package/build/deno/generators.js +4 -4
- package/build/deno.js +2 -2
- package/build/deployctl.js +2 -2
- package/build/direnv.js +2 -2
- package/build/docker.js +18 -18
- package/build/dotenv-vault.js +2 -2
- package/build/dotnet/dotnet-add.js +2 -2
- package/build/dotnet/dotnet-build.js +2 -2
- package/build/dotnet/dotnet-clean.js +2 -2
- package/build/dotnet/dotnet-format.js +2 -2
- package/build/dotnet/dotnet-list.js +2 -2
- package/build/dotnet/dotnet-migrate.js +2 -2
- package/build/dotnet/dotnet-nuget.js +3 -3
- package/build/dotnet/dotnet-pack.js +2 -2
- package/build/dotnet/dotnet-publish.js +2 -2
- package/build/dotnet/dotnet-remove.js +2 -2
- package/build/dotnet/dotnet-restore.js +2 -2
- package/build/dotnet/dotnet-sln.js +2 -2
- package/build/dotnet/dotnet-store.js +2 -2
- package/build/dotnet/dotnet-test.js +2 -2
- package/build/dotnet/dotnet-tool.js +3 -3
- package/build/dotnet.js +2 -2
- package/build/dtm.js +3 -3
- package/build/dynamic/index.js +1 -1
- package/build/elixir.js +2 -2
- package/build/elm-json.js +2 -2
- package/build/esbuild.js +3 -3
- package/build/file.js +2 -2
- package/build/flutter.js +5 -5
- package/build/gh.js +4 -4
- package/build/git.js +20 -20
- package/build/glow.js +2 -2
- package/build/hub.js +20 -20
- package/build/iex.js +2 -2
- package/build/index.js +1 -1
- package/build/index.json +1 -1
- package/build/java.js +2 -2
- package/build/julia.js +2 -2
- package/build/limactl.js +3 -3
- package/build/man.js +3 -3
- package/build/meteor.js +3 -3
- package/build/mgnl.js +2 -2
- package/build/mix.js +2 -2
- package/build/mongoimport.js +2 -2
- package/build/n.js +3 -3
- package/build/ni.js +2 -2
- package/build/node.js +2 -2
- package/build/npm.js +2 -2
- package/build/nr.js +3 -3
- package/build/nrm.js +2 -2
- package/build/opencode.js +2 -2
- package/build/osascript.js +2 -2
- package/build/osqueryi.js +2 -2
- package/build/pandoc.js +3 -3
- package/build/pdfunite.js +2 -2
- package/build/pi.js +2 -2
- package/build/pipenv.js +2 -2
- package/build/pm2.js +2 -2
- package/build/pnpm.js +23 -24
- package/build/pod.js +2 -2
- package/build/pre-commit.js +126 -126
- package/build/python.js +2 -2
- package/build/python3.js +2 -2
- package/build/r.js +3 -3
- package/build/rails.js +3 -3
- package/build/rancher.js +3 -3
- package/build/react-native.js +5 -5
- package/build/robot.js +2 -2
- package/build/rojo.js +2 -2
- package/build/rollup.js +2 -2
- package/build/rscript.js +2 -2
- package/build/rush.js +5 -5
- package/build/rushx.js +4 -4
- package/build/scc.js +2 -2
- package/build/shortcuts.js +2 -2
- package/build/sidekiq.js +2 -2
- package/build/sqlite3.js +2 -2
- package/build/streamlit.js +2 -2
- package/build/subl.js +2 -2
- package/build/swift.js +2 -2
- package/build/systemctl.js +2 -2
- package/build/ts-node.js +3 -3
- package/build/tsc.js +2 -2
- package/build/tsx.js +2 -2
- package/build/turbo.js +20 -20
- package/build/typst.js +2 -2
- package/build/vsce.js +20 -20
- package/build/wasm-bindgen.js +2 -2
- package/build/yarn.js +4 -4
- package/build/yomo.js +2 -2
- package/package.json +20 -20
- package/build/ai-agents specs.js +0 -1
package/build/flutter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var me=Object.create;var H=Object.defineProperty;var ge=Object.getOwnPropertyDescriptor;var be=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),J=[];for(let I of fe)if(I){let z=I.endsWith("/")?"folders":"filepaths";(z==="filepaths"&&c!=="only"||z==="folders"&&c!=="never")&&J.push({type:z==="filepaths"?"file":"folder",name:I,insertValue:I,isDangerous:
|
|
1
|
+
var me=Object.create;var H=Object.defineProperty;var ge=Object.getOwnPropertyDescriptor;var be=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var we=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of be(t))!ye.call(e,a)&&a!==n&&H(e,a,{get:()=>t[a],enumerable:!(i=ge(t,a))||i.enumerable});return e};var Te=(e,t,n)=>(n=e!=null?me(ve(e)):{},we(t||!e||!e.__esModule?H(n,"default",{value:e,enumerable:!0}):n,e));var K=F(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.shellExpand=O.ensureTrailingSlash=void 0;var ke=e=>e.endsWith("/")?e:`${e}/`;O.ensureTrailingSlash=ke;var Se=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,xe=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,a=>{var o;let s=a.slice(1);return(o=t[s])!==null&&o!==void 0?o:a}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(a,o,s)=>{var d,c;return(c=(d=t[o])!==null&&d!==void 0?d:s)!==null&&c!==void 0?c:a}),Ae=(e,t)=>{var n;let{environmentVariables:i}=t;return xe(Se(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};O.shellExpand=Ae});var X=F(w=>{"use strict";var Oe=w&&w.__awaiter||function(e,t,n,i){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function d(r){try{l(i.next(r))}catch(u){s(u)}}function c(r){try{l(i.throw(r))}catch(u){s(u)}}function l(r){r.done?o(r.value):a(r.value).then(d,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(w,"__esModule",{value:!0});w.filepaths=w.folders=w.getCurrentInsertedDirectory=void 0;w.sortFilesAlphabetically=$;var L=K();function $(e,t=[]){let n=t.map(a=>a.toLowerCase()),i=e.filter(a=>!n.includes(a.toLowerCase()));return[...i.filter(a=>!a.startsWith(".")).sort((a,o)=>a.localeCompare(o)),...i.filter(a=>a.startsWith(".")).sort((a,o)=>a.localeCompare(o)),"../"]}var Fe=(e,t,n)=>{if(e===null)return"/";let i=(0,L.shellExpand)(t,n),a=i.slice(0,i.lastIndexOf("/")+1);return a===""?(0,L.ensureTrailingSlash)(e):a.startsWith("/")?a:`${(0,L.ensureTrailingSlash)(e)}${a}`};w.getCurrentInsertedDirectory=Fe;function W(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:a=!1,editFileSuggestions:o,editFolderSuggestions:s,rootDirectory:d,showFolders:c="always"}=e,l=new Set(t),r=new Set(n),u=()=>t.length>0||n.length>0||i,b=(f=[])=>u()?f.filter(({name:g="",type:T})=>{if(!a&&T==="folder"||r.has(g)||i&&g.match(i))return!0;let[,...h]=g.split(".");if(h.length>=1){let y=h.length-1,k=h[y];do{if(l.has(k))return!0;y-=1,k=[h[y],k].join(".")}while(y>=0)}return!1}):f,S=(f=[])=>!o&&!s?f:f.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?o:s)||{}));return{trigger:(f,g)=>{let T=f.lastIndexOf("/"),h=g.lastIndexOf("/");return T!==h?!0:T===-1&&h===-1?!1:f.slice(0,T)!==g.slice(0,h)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,g,T)=>Oe(this,void 0,void 0,function*(){var h;let{isDangerous:y,currentWorkingDirectory:k,searchTerm:m}=T,x=(h=(0,w.getCurrentInsertedDirectory)(d??k,m,T))!==null&&h!==void 0?h:"/";try{let U=yield g({command:"ls",args:["-1ApL"],cwd:x}),fe=$(U.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),J=[];for(let I of fe)if(I){let z=I.endsWith("/")?"folders":"filepaths";(z==="filepaths"&&c!=="only"||z==="folders"&&c!=="never")&&J.push({type:z==="filepaths"?"file":"folder",name:I,insertValue:I,isDangerous:y,context:{templateType:z}})}return S(b(J))}catch{return[]}})}}w.folders=Object.assign(()=>W({showFolders:"only"}),Object.freeze(W({showFolders:"only"})));w.filepaths=Object.assign(W,Object.freeze(W()))});var ee=F(A=>{"use strict";var D=A&&A.__awaiter||function(e,t,n,i){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function d(r){try{l(i.next(r))}catch(u){s(u)}}function c(r){try{l(i.throw(r))}catch(u){s(u)}}function l(r){r.done?o(r.value):a(r.value).then(d,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(A,"__esModule",{value:!0});A.valueList=De;A.keyValue=_e;A.keyValueList=je;var Q=new Map;function P(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function Y(e,t,n){return D(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return P(t,i)}if(typeof e[0]=="string"){let i=e.map(a=>({name:a}));return P(t,i)}return P(t,e)})}function C(e,t,n,i){return D(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let a=Q.get(e);return a===void 0&&(a=yield Y(e,t,i),Q.set(e,a)),a}return Y(e,t,i)})}function Z(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function V(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function E(e,t){let n=new Set(e);return t.filter(i=>{var a;return typeof i.name=="string"?!n.has(i.name):!(!((a=i.name)===null||a===void 0)&&a.some(o=>n.has(o)))})}function De({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:a=!1}){return{trigger:(o,s)=>o.lastIndexOf(e)!==s.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>D(this,void 0,void 0,function*(){var s;let d=yield C(t,i?e:"",n,o);if(a)return d;let[c]=o,l=(s=c[c.length-1])===null||s===void 0?void 0:s.split(e);return E(l,d)})}}function _e({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:a=!0}){return{trigger:(o,s)=>o.indexOf(e)!==s.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>D(this,void 0,void 0,function*(){let[s]=o,c=!s[s.length-1].includes(e),l=c?t:n,r=Z(c,i);return C(l,c&&a?e:"",r,o)})}}function je({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:a=!1,insertSeparator:o=!0,insertDelimiter:s=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:c=!0}){return{trigger:(l,r)=>{let u=V(l,e,t),b=V(r,e,t);return u!==b},getQueryTerm:l=>{let r=V(l,e,t);return l.slice(r+1)},custom:(...l)=>D(this,void 0,void 0,function*(){let[r]=l,u=r[r.length-1],b=V(u,e,t),S=b===-1||u.slice(b,b+e.length)!==e,f=S?n:i,g=Z(S,a),h=yield C(f,S?o?e:"":s?t:"",g,l);if(S){if(d)return h;let k=u.split(t).map(m=>m.slice(0,m.indexOf(e)));return E(k,h)}if(c)return h;let y=u.split(t).map(k=>k.slice(k.indexOf(e)+e.length));return E(y,h)})}}});var te=F(_=>{"use strict";var Ie=_&&_.__awaiter||function(e,t,n,i){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function d(r){try{l(i.next(r))}catch(u){s(u)}}function c(r){try{l(i.throw(r))}catch(u){s(u)}}function l(r){r.done?o(r.value):a(r.value).then(d,c)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(_,"__esModule",{value:!0});_.ai=Le;var ze=4097,We=4,Ve=.8,Re=ze*We*Ve;function Le({name:e,prompt:t,message:n,postProcess:i,temperature:a,splitOn:o}){return{scriptTimeout:15e3,custom:(s,d,c)=>Ie(this,void 0,void 0,function*(){var l,r;let u=yield d({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:d,generatorContext:c}):t,S=typeof n=="function"?yield n({tokens:s,executeCommand:d,generatorContext:c}):n;if(S===null||S.length===0)return console.warn("No message provided to AI generator"),[];let f=Re-((l=b?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...b?[{role:"system",content:b}]:[],{role:"user",content:S.slice(0,f)}],temperature:a},T=JSON.stringify(g),h=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",T]}),y=JSON.parse(h.stdout);return(r=y?.choices.map(m=>{var x;return(x=m?.message)===null||x===void 0?void 0:x.content}).filter(m=>typeof m=="string").flatMap(m=>o?m.split(o).filter(x=>x.trim().length>0):[m]).map(m=>{if(i)return i(m);let x=m.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:x,insertValue:`'${x}'`,description:"Generated by Fig AI"}}))!==null&&r!==void 0?r:[]})}}});var ie=F(v=>{"use strict";var Pe=v&&v.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Ee=v&&v.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Pe(t,e,n)};Object.defineProperty(v,"__esModule",{value:!0});v.ai=v.folders=v.filepaths=void 0;var ne=X();Object.defineProperty(v,"filepaths",{enumerable:!0,get:function(){return ne.filepaths}});Object.defineProperty(v,"folders",{enumerable:!0,get:function(){return ne.folders}});Ee(ee(),v);var Ce=te();Object.defineProperty(v,"ai",{enumerable:!0,get:function(){return Ce.ai}})});var se=Te(ie(),1),q={emulators:{script:["flutter","emulators"],postProcess:function(e){return e.match(/.*•.*/gi).map(t=>t.split("\u2022")).map(t=>t.map(n=>n.trim())).map(t=>({name:`${t[1]} \u2022 ${t[2]} \u2022 ${t[3]}`,icon:"\u{1F4F1}",description:"Available emulators",insertValue:t[0]}))}},dartFiles:(0,se.filepaths)({extensions:["dart"]})},qe={name:["-h","--help"],description:"Print this usage information"},Be={name:["-v","--verbose"],description:"Noisy logging, including all shell commands executed. If used with --help, shows hidden options"},Ge={name:["-d","--device-id"],insertValue:"--device-id '{cursor}'",description:"Target device id or name (prefixes allowed)",args:{name:"device id",description:"Target device id or name (prefixes allowed)",generators:q.emulators}};var Me={name:"--suppress-analytics",description:"Suppress analytics reporting when this command runs"},p=[qe,Be,Ge,Me],R=[{name:"--pub",description:"Run 'flutter pub get' before executing this command"},{name:"--no-pub",description:"Don't run 'flutter pub get' before executing this command"}],Ne=[{name:"--current-package",description:"Analyze the current project, if applicable"},{name:"--no-current-package",description:"Don't analyze the current project, if applicable"}],Ue=[{name:"--congratulate",description:"Show output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified"},{name:"--no-congratulate",description:"Hide output even when there are no errors, warnings, hints, or lints. Ignored if --watch is specified"}],Je=[{name:"--preamble",description:"When analyzing the flutter repository, display the number of files that will be analyzed. Ignored if --watch is specified"},{name:"--no-preamble",description:"When analyzing the flutter repository, don't display the number of files that will be analyzed. Ignored if --watch is specified"}],He=[{name:"--fatal-infos",description:"Treat info level issues as fatal"},{name:"--no-fatal-infos",description:"Don't treat info level issues as fatal"}],Ke=[{name:"--fatal-warnings",description:"Treat warning level issues as fatal"},{name:"--no-fatal-warnings",description:"Don't treat warning level issues as fatal"}],B=[{name:"--null-assertions",description:"Perform additional null assertions on the boundaries of migrated and un-migrated code. This setting is not currently supported on desktop devices"},{name:"--no-null-assertions",description:"Not performing additional null assertions on the boundaries of migrated and un-migrated code. This setting is not currently supported on desktop devices"}],G=[{name:"--track-widget-creation",description:"Track widget creation locations. This enables features such as the widget inspector. This parameter is only functional in debug mode (i.e. when compiling JIT, not AOT)"},{name:"--no-track-widget-creation",description:"No tracking widget creation locations. This disables features such as the widget inspector. This parameter is only functional in debug mode (i.e. when compiling JIT, not AOT)"}],$e=[{name:"--test-assets",description:"Build the assets bundle for testing. Consider using --no-test-assets if assets are not required"},{name:"--no-test-assets",description:"Exclude the assets bundle for build testing"}];var Xe=[{name:"--use-deferred-loading",description:`Generate the Dart localization file with locales imported as deferred, allowing for lazy loading of each locale in Flutter web.
|
|
3
3
|
|
|
4
4
|
This can reduce a web app\u2019s initial startup time by decreasing the size of the JavaScript bundle. When this flag is set to true, the messages for a particular locale are only downloaded and loaded by the Flutter app as they are needed. For projects with a lot of different locales and many localization strings, it can be an performance improvement to have deferred loading. For projects with a small number of locales, the difference is negligible, and might slow down the start up compared to bundling the localizations with the rest of the application.
|
|
5
5
|
|
|
@@ -13,10 +13,10 @@ If output-dir is specified, files will be generated there`},{name:"--no-syntheti
|
|
|
13
13
|
|
|
14
14
|
By default, simple messages will not require metadata, but it is highly recommended as this provides context for the meaning of a message to readers.
|
|
15
15
|
|
|
16
|
-
Resource attributes are still required for plural messages`},{name:"--no-required-resource-attributes"}];var Ze=[{name:"--keep-app-running",description:'Will keep the Flutter application running when done testing. By default, "flutter drive" stops the application after tests are finished, and --keep-app-running overrides this. On the other hand, if --use-existing-app is specified, then "flutter drive" instead defaults to leaving the application running, and --no-keep-app-running overrides it'},{name:"--no-keep-app-running"}],ae=[{name:"--build",description:"(Deprecated) Build the app before running. To use an existing app, pass the --use-application-binary flag with an existing APK (defaults to on)"},{name:"--no-build"}],et=[{name:"--headless",description:"Whether the driver browser is going to be launched in headless mode. Defaults to true"},{name:"--no-headless"}],tt=[{name:"--android-emulator",description:"Whether to perform Flutter Driver testing on Android Emulator.Works only if 'browser-name' is set to 'android-chrome'"},{name:"--no-android-emulator"}],nt=[{name:"--await-first-frame-when-tracing",description:`Whether to wait for the first frame when tracing startup ("--trace-startup"), or just dump the trace as soon as the application is running. The first frame is detected by looking for a Timeline event with the name "Rasterized first useful frame". By default, the widgets library's binding takes care of sending this event`},{name:"--no-await-first-frame-when-tracing"}],it=[{name:"--use-test-fonts",description:'Enable (and default to) the "Ahem" font. This is a special font used in tests to remove any dependencies on the font metrics. It is enabled when you use "flutter test". Set this flag when running a test using "flutter run" for debugging purposes. This flag is only available when running in debug mode'},{name:"--no-use-test-fonts"}];var at=[{name:"--fast-start",description:"Whether to quickly bootstrap applications with a minimal app. Currently this is only supported on Android devices. This option cannot be paired with --use-application-binary"},{name:"--no-fast-start"}],ot=[{name:"--offline",description:'When "flutter pub get" is run by the create command, this indicates whether to run it in offline mode or not. In offline mode, it will need to have all dependencies already available in the pub cache to succeed'},{name:"--no-offline"}],rt=[{name:"--with-driver-test",description:"(Deprecated) Also add a flutter_driver dependency and generate a sample 'flutter drive' test. This flag has been deprecated, instead see package:integration_test at https://pub.dev/packages/integration_test"},{name:"--no-with-driver-test"}],oe=[{name:"--overwrite",description:"When performing operations, overwrite existing files"},{name:"--no-overwrite"}],st=[{name:"--analytics",description:"Enable reporting anonymously tool usage statistics and crash reports"},{name:"--no-analytics",description:"Disable reporting anonymously tool usage statistics and crash reports"}],lt=[{name:"--enable-web",description:"Enable Flutter for web. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-web",description:"Disable Flutter for web. This setting will take effect on the master, dev, beta, and stable channels"}],dt=[{name:"--enable-linux-desktop",description:"Enable beta-quality support for desktop on Linux. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-linux-desktop",description:"Disable beta-quality support for desktop on Linux. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],ct=[{name:"--enable-macos-desktop",description:"Enable beta-quality support for desktop on macOS. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-macos-desktop",description:"Disable beta-quality support for desktop on macOS. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],pt=[{name:"--enable-windows-desktop",description:"Enable beta-quality support for desktop on Windows. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-windows-desktop",description:"Disable beta-quality support for desktop on Windows. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],ut=[{name:"--single-widget-reload-optimization",description:"Enable Hot reload optimization for changes to class body of a single widget. This setting will take effect on the master, dev, and beta channels"},{name:"--no-single-widget-reload-optimization",description:"Disable Hot reload optimization for changes to class body of a single widget. This setting will take effect on the master, dev, and beta channels"}],ht=[{name:"--enable-android",description:"Enable Flutter for Android. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-android",description:"Disable Flutter for Android. This setting will take effect on the master, dev, beta, and stable channels"}],ft=[{name:"--enable-ios",description:"Enable Flutter for iOS. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-ios",description:"Disable Flutter for iOS. This setting will take effect on the master, dev, beta, and stable channels"}],mt=[{name:"--enable-fuchsia",description:"Enable Flutter for Fuchsia. This setting will take effect on the master channel"},{name:"--no-enable-fuchsia",description:"Disable Flutter for Fuchsia. This setting will take effect on the master channel"}],gt=[{name:"--experimental-invalidation-strategy",description:"Enable Hot reload optimization that reduces incremental artifact size. This setting will take effect on the master, dev, and beta channels"},{name:"--no-experimental-invalidation-strategy",description:"Disable Hot reload optimization that reduces incremental artifact size. This setting will take effect on the master, dev, and beta channels"}],M={name:"--device-user",description:'Identifier number for a user or work profile on Android only. Run "adb shell pm list users" for available identifiers',args:{name:"seconds"}},j={name:"--device-timeout",description:"Time in seconds to wait for devices to attach. Longer timeouts may be necessary for networked devices",args:{name:"seconds"}},le={name:"--debug",description:"Build a debug version of your app (default mode)"},de={name:"--profile",description:"Build a version of your app specialized for performance profiling"},ce={name:["-t","--target"],insertValue:"--target ",description:'The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to "lib/main.dart")',args:{name:".dart file path",template:"filepaths"}},pe={name:"--observatory-port",description:"(deprecated use host-vmservice-port instead) Listen to the given port for an observatory debugger connection. Specifying port 0 (the default) will find a random free port"},ue={name:"--device-vmservice-port",description:"Look for vmservice connections only from the specified port. Specifying port 0 (the default) will accept the first vmservice discovered"},he={name:"--host-vmservice-port",description:"When a device-side vmservice port is forwarded to a host-side port, use this value as the host port. Specifying port 0 (the default) will find a random free host port"},N={name:"--dart-define",description:"Additional key-value pairs that will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, and double.fromEnvironment constructors",args:{name:"foo=bar"}},re=[le,de,{name:"--release",description:"Build a release version of your app"},N,{name:"--flavor",description:"Build a custom app flavor as defined by platform-specific build setup. Supports the use of product flavors in Android Gradle scripts, and the use of custom Xcode schemes"},{name:"--web-renderer",description:"The renderer implementation to use when building for the web. Possible values are: html - always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL. This is the default. canvaskit - always use the CanvasKit renderer. This renderer uses WebGL and WebAssembly to render graphics. auto - use the HTML renderer on mobile devices, and CanvasKit on desktop devices. [auto (default), canvaskit, html]"},{name:"--trace-startup",description:"Trace application startup, then exit, saving the trace to a file"},{name:"--verbose-system-logs",description:"Include verbose logging from the flutter engine"},{name:"--cache-sksl",description:"Only cache the shader in SkSL instead of binary or GLSL"},{name:"--dump-skp-on-shader-compilation",description:"Automatically dump the skp that triggers new shader compilations. This is useful for writing custom ShaderWarmUp to reduce jank. By default, this is not enabled to reduce the overhead. This is only available in profile or debug build"},{name:"--purge-persistent-cache",description:"Removes all existing persistent caches. This allows reproducing shader compilation jank that normally only happens the first time an app is run, or for reliable testing of compilation jank fixes (e.g. shader warm-up)"},{name:"--route",description:"Which route to load when running the app"},{name:"--vmservice-out-file",description:"A file to write the attached vmservice uri to after an application is started. e.g. project/example/out.txt",args:{name:".txt output file path",template:"filepaths"}},{name:"--use-application-binary",description:"Specify a pre-built application binary to use when running. For android applications, this must be the path to an APK. For iOS applications, the path to an IPA. Other device types do not yet support prebuilt application binaries. e.g. path/to/app.apk",args:{name:"file path to .apk",template:"filepaths"}},{name:"--endless-trace-buffer",description:'Enable tracing to the endless tracer. This is useful when recording huge amounts of traces. If we need to use endless buffer to record startup traces, we can combine the ("--trace-startup"). For example, flutter run --trace-startup --endless-trace-buffer'},{name:"--trace-systrace",description:"Enable tracing to the system tracer. This is only useful on platforms where such a tracer is available (Android and Fuchsia)"},{name:"--trace-skia",description:"Enable tracing of Skia code. This is useful when debugging the raster thread (formerly known as the GPU thread). By default, Flutter will not log skia code"},{name:["-a","--dart-entrypoint-args"],insertValue:"--dart-entrypoint-args",description:"Pass a list of arguments to the Dart entrypoint at application startup. By default this is main(List<String> args). Specify this option multiple times each with one argument to pass multiple arguments to the Dart entrypoint. Currently this is only supported on desktop platforms",isRepeatable:!0},ce,pe,ue,he,...L,...G,...B,M,j,{name:"--dds-port",description:"When this value is provided, the Dart Development Service (DDS) will be bound to the provided port. Specifying port 0 (the default) will find a random free port"},{name:"--devtools-server-address",description:"When this value is provided, the Flutter tool will not spin up a new DevTools server instance, but instead will use the one provided at this address"}],bt={name:"flutter",description:"Run flutter command",subcommands:[{name:"analyze",description:"Analyze the project's Dart code",options:[...p,...Ne,{name:"--watch",description:"Run analysis continuously, watching the filesystem for changes"},{name:"--write",description:"Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results",args:{name:"file path",template:"filepaths"}},...L,...Ue,...Je,...He,...Ke]},{name:"assemble",description:"Assemble and build Flutter resources",options:[...p,{name:["-d","--define"],description:"Allows passing configuration to a target with --define=target=key=value",insertValue:"--define"},{name:"--performance-measurement-file",description:"Output individual target performance to a JSON file"},{name:["-i","--input"],description:"Treat warning level issues as fatal",insertValue:"--input"},{name:"--depfile",description:"A file path where a depfile will be written. This contains all build inputs and outputs in a make style syntax"},{name:"--build-inputs",description:"A file path where a newline separated file containing all inputs used will be written after a build. This file is not included as a build input or output. This file is not written if the build fails for any reason"},{name:"--build-outputs",description:"A file path where a newline separated file containing all outputs used will be written after a build. This file is not included as a build input or output. This file is not written if the build fails for any reason"},{name:["-o","--output"],description:"A directory where output files will be written. Must be either absolute or relative from the root of the current Flutter project",insertValue:"--output"},{name:"--ExtraGenSnapshotOptions"},{name:"--ExtraFrontEndOptions"},{name:"--DartDefines"},{name:"--resource-pool-size",description:"The maximum number of concurrent tasks the build system will run"}]},{name:"attach",description:"Attach to a running app",options:[...p,le,de,ce,pe,ue,he,N,M,...B,{name:"--debug-uri",description:"The URI at which the observatory is listening"},{name:"--app-id",description:'The package name (Android) or bundle identifier (iOS) for the app. This can be specified to avoid being prompted if multiple observatory ports are advertised. If you have multiple devices or emulators running, you should include the device hostname as well, e.g. "com.example.myApp@my-iphone". This parameter is case-insensitive'},{name:"--pid-file",description:"Specify a file to write the process id to. You can send SIGUSR1 to trigger a hot reload and SIGUSR2 to trigger a hot restart"},...G,{name:"--dds-port",description:"When this value is provided, the Dart Development Service (DDS) will be bound to the provided port. Specifying port 0 (the default) will find a random free port"},{name:"--devtools-server-address",description:"When this value is provided, the Flutter tool will not spin up a new DevTools server instance, but instead will use the one provided at this address"},j]},{name:"bash-completion",description:"Output command line shell completion setup scripts",options:[...p,...oe]},{name:"build",description:"Build an executable app or install bundle",options:[...p,{name:["-t","--target"],insertValue:"--target ",description:`The main entry-point file of the application, as run on the device.
|
|
16
|
+
Resource attributes are still required for plural messages`},{name:"--no-required-resource-attributes"}];var Ze=[{name:"--keep-app-running",description:'Will keep the Flutter application running when done testing. By default, "flutter drive" stops the application after tests are finished, and --keep-app-running overrides this. On the other hand, if --use-existing-app is specified, then "flutter drive" instead defaults to leaving the application running, and --no-keep-app-running overrides it'},{name:"--no-keep-app-running"}],ae=[{name:"--build",description:"(Deprecated) Build the app before running. To use an existing app, pass the --use-application-binary flag with an existing APK (defaults to on)"},{name:"--no-build"}],et=[{name:"--headless",description:"Whether the driver browser is going to be launched in headless mode. Defaults to true"},{name:"--no-headless"}],tt=[{name:"--android-emulator",description:"Whether to perform Flutter Driver testing on Android Emulator.Works only if 'browser-name' is set to 'android-chrome'"},{name:"--no-android-emulator"}],nt=[{name:"--await-first-frame-when-tracing",description:`Whether to wait for the first frame when tracing startup ("--trace-startup"), or just dump the trace as soon as the application is running. The first frame is detected by looking for a Timeline event with the name "Rasterized first useful frame". By default, the widgets library's binding takes care of sending this event`},{name:"--no-await-first-frame-when-tracing"}],it=[{name:"--use-test-fonts",description:'Enable (and default to) the "Ahem" font. This is a special font used in tests to remove any dependencies on the font metrics. It is enabled when you use "flutter test". Set this flag when running a test using "flutter run" for debugging purposes. This flag is only available when running in debug mode'},{name:"--no-use-test-fonts"}];var at=[{name:"--fast-start",description:"Whether to quickly bootstrap applications with a minimal app. Currently this is only supported on Android devices. This option cannot be paired with --use-application-binary"},{name:"--no-fast-start"}],ot=[{name:"--offline",description:'When "flutter pub get" is run by the create command, this indicates whether to run it in offline mode or not. In offline mode, it will need to have all dependencies already available in the pub cache to succeed'},{name:"--no-offline"}],rt=[{name:"--with-driver-test",description:"(Deprecated) Also add a flutter_driver dependency and generate a sample 'flutter drive' test. This flag has been deprecated, instead see package:integration_test at https://pub.dev/packages/integration_test"},{name:"--no-with-driver-test"}],oe=[{name:"--overwrite",description:"When performing operations, overwrite existing files"},{name:"--no-overwrite"}],st=[{name:"--analytics",description:"Enable reporting anonymously tool usage statistics and crash reports"},{name:"--no-analytics",description:"Disable reporting anonymously tool usage statistics and crash reports"}],lt=[{name:"--enable-web",description:"Enable Flutter for web. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-web",description:"Disable Flutter for web. This setting will take effect on the master, dev, beta, and stable channels"}],dt=[{name:"--enable-linux-desktop",description:"Enable beta-quality support for desktop on Linux. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-linux-desktop",description:"Disable beta-quality support for desktop on Linux. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],ct=[{name:"--enable-macos-desktop",description:"Enable beta-quality support for desktop on macOS. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-macos-desktop",description:"Disable beta-quality support for desktop on macOS. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],pt=[{name:"--enable-windows-desktop",description:"Enable beta-quality support for desktop on Windows. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"},{name:"--no-enable-windows-desktop",description:"Disable beta-quality support for desktop on Windows. This setting will take effect on the master, dev, beta, and stable channels. Newer beta versions are available on the beta channel"}],ut=[{name:"--single-widget-reload-optimization",description:"Enable Hot reload optimization for changes to class body of a single widget. This setting will take effect on the master, dev, and beta channels"},{name:"--no-single-widget-reload-optimization",description:"Disable Hot reload optimization for changes to class body of a single widget. This setting will take effect on the master, dev, and beta channels"}],ht=[{name:"--enable-android",description:"Enable Flutter for Android. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-android",description:"Disable Flutter for Android. This setting will take effect on the master, dev, beta, and stable channels"}],ft=[{name:"--enable-ios",description:"Enable Flutter for iOS. This setting will take effect on the master, dev, beta, and stable channels"},{name:"--no-enable-ios",description:"Disable Flutter for iOS. This setting will take effect on the master, dev, beta, and stable channels"}],mt=[{name:"--enable-fuchsia",description:"Enable Flutter for Fuchsia. This setting will take effect on the master channel"},{name:"--no-enable-fuchsia",description:"Disable Flutter for Fuchsia. This setting will take effect on the master channel"}],gt=[{name:"--experimental-invalidation-strategy",description:"Enable Hot reload optimization that reduces incremental artifact size. This setting will take effect on the master, dev, and beta channels"},{name:"--no-experimental-invalidation-strategy",description:"Disable Hot reload optimization that reduces incremental artifact size. This setting will take effect on the master, dev, and beta channels"}],M={name:"--device-user",description:'Identifier number for a user or work profile on Android only. Run "adb shell pm list users" for available identifiers',args:{name:"seconds"}},j={name:"--device-timeout",description:"Time in seconds to wait for devices to attach. Longer timeouts may be necessary for networked devices",args:{name:"seconds"}},le={name:"--debug",description:"Build a debug version of your app (default mode)"},de={name:"--profile",description:"Build a version of your app specialized for performance profiling"},ce={name:["-t","--target"],insertValue:"--target ",description:'The main entry-point file of the application, as run on the device. If the --target option is omitted, but a file name is provided on the command line, then that is used instead. (defaults to "lib/main.dart")',args:{name:".dart file path",template:"filepaths"}},pe={name:"--observatory-port",description:"(deprecated use host-vmservice-port instead) Listen to the given port for an observatory debugger connection. Specifying port 0 (the default) will find a random free port"},ue={name:"--device-vmservice-port",description:"Look for vmservice connections only from the specified port. Specifying port 0 (the default) will accept the first vmservice discovered"},he={name:"--host-vmservice-port",description:"When a device-side vmservice port is forwarded to a host-side port, use this value as the host port. Specifying port 0 (the default) will find a random free host port"},N={name:"--dart-define",description:"Additional key-value pairs that will be available as constants from the String.fromEnvironment, bool.fromEnvironment, int.fromEnvironment, and double.fromEnvironment constructors",args:{name:"foo=bar"}},re=[le,de,{name:"--release",description:"Build a release version of your app"},N,{name:"--flavor",description:"Build a custom app flavor as defined by platform-specific build setup. Supports the use of product flavors in Android Gradle scripts, and the use of custom Xcode schemes"},{name:"--web-renderer",description:"The renderer implementation to use when building for the web. Possible values are: html - always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL. This is the default. canvaskit - always use the CanvasKit renderer. This renderer uses WebGL and WebAssembly to render graphics. auto - use the HTML renderer on mobile devices, and CanvasKit on desktop devices. [auto (default), canvaskit, html]"},{name:"--trace-startup",description:"Trace application startup, then exit, saving the trace to a file"},{name:"--verbose-system-logs",description:"Include verbose logging from the flutter engine"},{name:"--cache-sksl",description:"Only cache the shader in SkSL instead of binary or GLSL"},{name:"--dump-skp-on-shader-compilation",description:"Automatically dump the skp that triggers new shader compilations. This is useful for writing custom ShaderWarmUp to reduce jank. By default, this is not enabled to reduce the overhead. This is only available in profile or debug build"},{name:"--purge-persistent-cache",description:"Removes all existing persistent caches. This allows reproducing shader compilation jank that normally only happens the first time an app is run, or for reliable testing of compilation jank fixes (e.g. shader warm-up)"},{name:"--route",description:"Which route to load when running the app"},{name:"--vmservice-out-file",description:"A file to write the attached vmservice uri to after an application is started. e.g. project/example/out.txt",args:{name:".txt output file path",template:"filepaths"}},{name:"--use-application-binary",description:"Specify a pre-built application binary to use when running. For android applications, this must be the path to an APK. For iOS applications, the path to an IPA. Other device types do not yet support prebuilt application binaries. e.g. path/to/app.apk",args:{name:"file path to .apk",template:"filepaths"}},{name:"--endless-trace-buffer",description:'Enable tracing to the endless tracer. This is useful when recording huge amounts of traces. If we need to use endless buffer to record startup traces, we can combine the ("--trace-startup"). For example, flutter run --trace-startup --endless-trace-buffer'},{name:"--trace-systrace",description:"Enable tracing to the system tracer. This is only useful on platforms where such a tracer is available (Android and Fuchsia)"},{name:"--trace-skia",description:"Enable tracing of Skia code. This is useful when debugging the raster thread (formerly known as the GPU thread). By default, Flutter will not log skia code"},{name:["-a","--dart-entrypoint-args"],insertValue:"--dart-entrypoint-args",description:"Pass a list of arguments to the Dart entrypoint at application startup. By default this is main(List<String> args). Specify this option multiple times each with one argument to pass multiple arguments to the Dart entrypoint. Currently this is only supported on desktop platforms",isRepeatable:!0},ce,pe,ue,he,...R,...G,...B,M,j,{name:"--dds-port",description:"When this value is provided, the Dart Development Service (DDS) will be bound to the provided port. Specifying port 0 (the default) will find a random free port"},{name:"--devtools-server-address",description:"When this value is provided, the Flutter tool will not spin up a new DevTools server instance, but instead will use the one provided at this address"}],bt={name:"flutter",description:"Run flutter command",subcommands:[{name:"analyze",description:"Analyze the project's Dart code",options:[...p,...Ne,{name:"--watch",description:"Run analysis continuously, watching the filesystem for changes"},{name:"--write",description:"Also output the results to a file. This is useful with --watch if you want a file to always contain the latest results",args:{name:"file path",template:"filepaths"}},...R,...Ue,...Je,...He,...Ke]},{name:"assemble",description:"Assemble and build Flutter resources",options:[...p,{name:["-d","--define"],description:"Allows passing configuration to a target with --define=target=key=value",insertValue:"--define"},{name:"--performance-measurement-file",description:"Output individual target performance to a JSON file"},{name:["-i","--input"],description:"Treat warning level issues as fatal",insertValue:"--input"},{name:"--depfile",description:"A file path where a depfile will be written. This contains all build inputs and outputs in a make style syntax"},{name:"--build-inputs",description:"A file path where a newline separated file containing all inputs used will be written after a build. This file is not included as a build input or output. This file is not written if the build fails for any reason"},{name:"--build-outputs",description:"A file path where a newline separated file containing all outputs used will be written after a build. This file is not included as a build input or output. This file is not written if the build fails for any reason"},{name:["-o","--output"],description:"A directory where output files will be written. Must be either absolute or relative from the root of the current Flutter project",insertValue:"--output"},{name:"--ExtraGenSnapshotOptions"},{name:"--ExtraFrontEndOptions"},{name:"--DartDefines"},{name:"--resource-pool-size",description:"The maximum number of concurrent tasks the build system will run"}]},{name:"attach",description:"Attach to a running app",options:[...p,le,de,ce,pe,ue,he,N,M,...B,{name:"--debug-uri",description:"The URI at which the observatory is listening"},{name:"--app-id",description:'The package name (Android) or bundle identifier (iOS) for the app. This can be specified to avoid being prompted if multiple observatory ports are advertised. If you have multiple devices or emulators running, you should include the device hostname as well, e.g. "com.example.myApp@my-iphone". This parameter is case-insensitive'},{name:"--pid-file",description:"Specify a file to write the process id to. You can send SIGUSR1 to trigger a hot reload and SIGUSR2 to trigger a hot restart"},...G,{name:"--dds-port",description:"When this value is provided, the Dart Development Service (DDS) will be bound to the provided port. Specifying port 0 (the default) will find a random free port"},{name:"--devtools-server-address",description:"When this value is provided, the Flutter tool will not spin up a new DevTools server instance, but instead will use the one provided at this address"},j]},{name:"bash-completion",description:"Output command line shell completion setup scripts",options:[...p,...oe]},{name:"build",description:"Build an executable app or install bundle",options:[...p,{name:["-t","--target"],insertValue:"--target ",description:`The main entry-point file of the application, as run on the device.
|
|
17
17
|
If the --target option is omitted, but a file name is provided on the command line, then that is used instead.
|
|
18
18
|
(defaults to "lib/main.dart")`,args:{name:"path",generators:q.dartFiles}}],args:{name:"executable-type",description:"",suggestions:[{name:"aar",description:"Build a repository containing an AAR and a POM file",type:"argument",icon:"\u{1F4E6}"},{name:"apk",description:"Build an Android APK file from your app",type:"argument",icon:"\u{1F916}"},{name:"appbundle",description:"Build an Android App Bundle file from your app",type:"argument",icon:"\u{1F916}"},{name:"bundle",description:"Build the Flutter assets directory from your app",type:"argument",icon:"\u{1F4E6}"},{name:"ios",description:"Build an iOS application bundle (Mac OS X host only)",type:"argument",icon:"\u{1F4F1}"},{name:"ios-framework",description:"Produces .xcframeworks for a Flutter project and its plugins for integration into existing, plain Xcode projects",type:"argument",icon:"\u{1F4F1}"},{name:"ipa",description:"Build an iOS archive bundle (Mac OS X host only)",type:"argument",icon:"\u{1F4F1}"},{name:"web",description:"Build a web application bundle",type:"argument",icon:"\u{1F30E}"}]}},{name:"channel",description:"List or switch Flutter channels",args:{name:"channel-name",description:"Switch to <channel name>. Leave this blank to see available channels",generators:{script:["flutter","channel"],postProcess:function(e){return e.split(`
|
|
19
|
-
`).filter(t=>t.match(/\w+$/)).map(t=>({name:t.trim().match(/\w+/)[0],active:t.match(/\*/)!=null})).map(t=>({name:`${t.name}${t.active?" \u2705":""}`,icon:"\u{1F426}",description:"Available channels",insertValue:t.name}))}}}},{name:"clean",description:"Delete the build/ and .dart_tool/ directories",options:p},{name:"config",description:"Configure Flutter settings",options:[...p,...st,{name:"--clear-ios-signing-cert",description:"Clear the saved development certificate choice used to sign apps for iOS device deployment"},{name:"--android-sdk",description:"The Android SDK directory"},{name:"--android-studio-dir",description:"The Android Studio install directory"},{name:"--build-dir",description:"The relative path to override a projects build directory",args:{name:"path",template:"folders"}},...lt,...dt,...ct,...pt,...ut,...ht,...ft,...mt,...gt,{name:"--clear-features",description:"Remove all configured features and restore them to the default values"}]},{name:"create",description:"Create a new Flutter project",options:[...p,...L,...ot,...rt,...oe,{name:"--description",description:'The description to use for your new Flutter project. This string ends up in the pubspec.yaml file. (defaults to "A new Flutter project.")'},{name:"--org",description:'The organization responsible for your new Flutter project, in reverse domain name notation. This string is used in Java package names and as prefix in the iOS bundle identifier. (defaults to "com.example")'},{name:"--project-name",description:"The project name for this new Flutter project. This must be a valid dart package name"},{name:["-i","--ios-language"],insertValue:"--ios-language ",description:"[objc, swift (default)]",args:{suggestions:[{name:"objc",type:"argument",icon:"\u{1F4F1}"},{name:"swift (default)",insertValue:"swift",type:"argument",icon:"\u{1F4F1}"}]}},{name:["-a","--android-language"],insertValue:"--android-language ",description:"[java, kotlin (default)]",args:{suggestions:[{name:"java",type:"argument",icon:"\u{1F916}"},{name:"kotlin (default)",insertValue:"kotlin",type:"argument",icon:"\u{1F916}"}]}},{name:"--platforms",description:"The platforms supported by this project. This argument only works when the --template is set to app or plugin. Platform folders (e.g. android/) will be generated in the target project. When adding platforms to a plugin project, the pubspec.yaml will be updated with the requested platform. Adding desktop platforms requires the corresponding desktop config setting to be enabled. [ios (default), android (default), windows (default), linux (default), macos (default), web (default)]",args:{suggestions:[{name:"web",type:"argument",icon:"\u{1F30D}"},{name:"macos",type:"argument",icon:"\u{1F5A5}"},{name:"linux",type:"argument",icon:"\u{1F427}"},{name:"windows",type:"argument",icon:"\u{1FA9F}"},{name:"android",type:"argument",icon:"\u{1F916}"},{name:"ios",type:"argument",icon:"\u{1F4F1}"}]}},{name:["-t","--template"],insertValue:"--template ",description:"Specify the type of project to create. [app] (default) Generate a Flutter application. [module] Generate a project to add a Flutter module to an existing Android or iOS application. [package] Generate a shareable Flutter project containing modular Dart code. [plugin] Generate a shareable Flutter project containing an API in Dart code with a platform-specific implementation for Android, for iOS code, or for both",args:{name:"type",suggestions:[{name:"app (default)",insertValue:"app",type:"argument",icon:"\u{1F4F1}"},{name:"module",type:"argument",icon:"\u{1F9E9}"},{name:"package",type:"argument",icon:"\u{1F4E6}"},{name:"plugin",type:"argument",icon:"\u{1F527}"}]}},{name:["-s","--sample"],insertValue:"--sample ",description:"Specifies the Flutter code sample to use as the main.dart for an application. Implies --template=app. The value should be the sample ID of the desired sample from the API documentation website (http://docs.flutter.dev). An example can be found at https://master-api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html",args:{name:"id"}},{name:"--list-samples",description:"Specifies a JSON output file for a listing of Flutter code samples that can be created with --sample",args:{name:"file path",template:"filepaths"}}]},{name:"devices",description:"List all connected devices",options:[...p,{name:"--machine",description:"Output device information in machine readable structured JSON format"},{name:["-t","--timeout"],description:"(deprecated) Use --device-timeout instead"},j]},{name:"doctor",description:"Show information about the installed tooling",options:[...p,{name:"--android-licenses",description:"Run the Android SDK manager tool to accept the SDK's licenses"}]},{name:"downgrade",description:"Downgrade Flutter to the last active version for the current channel",options:p},{name:"drive",description:"Run integration tests for the project on an attached device or emulator",options:[...p,...re,...Ze,{name:"--use-existing-app",description:"Connect to an already running instance via the given observatory URL. If this option is given, the application will not be automatically started, and it will only be stopped if --no-keep-app-running is explicitly set",args:{name:"URL"}},{name:"--driver",description:'The test file to run on the host (as opposed to the target file to run on the device). By default, this file has the same base name as the target file, but in the "test_driver/" directory instead, and with "_test" inserted just before the extension, so e.g. if the target is "lib/main.dart", the driver will be "test_driver/main_test.dart"',args:{name:"driver"}},...ae,{name:"--driver-port",description:"The port where Webdriver server is launched at. Defaults to 4444",args:{name:"port number"}},...et,{name:"--browser-name",description:"Name of browser where tests will be executed. Following browsers are supported: Chrome, Firefox, Safari (macOS and iOS) and Edge. Defaults to Chrome. [android-chrome, chrome (default), edge, firefox, ios-safari, safari]"},{name:"--browser-dimension",description:'The dimension of browser when running Flutter Web test. This will affect screenshot and all offset-related actions. By default. it is set to 1600,1024 (1600 by 1024). (defaults to "1600,1024")'},...tt,{name:"--chrome-binary",description:"Location of Chrome binary. Works only if 'browser-name' is set to 'chrome'"},{name:"--write-sksl-on-exit",description:"Attempts to write an SkSL file when the drive process is finished to the provided file, overwriting it if necessary"},{name:"--test-arguments",description:"Additional arguments to pass to the Dart VM running The test script"}]},{name:"emulators",description:"List, launch and create emulators",options:[...p,{name:"--launch",insertValue:"--launch '{cursor}'",description:"The full or partial ID of the emulator to launch",args:{name:"emulator id",generators:q.emulators}},{name:"--create",description:"Creates a new Android emulator based on a Pixel device"},{name:"--name",description:"Used with flag --create. Specifies a name for the emulator being created"}]},{name:"format",description:"Format one or more Dart files",options:[...p,{name:["-n","--dry-run"],description:"Show which files would be modified but make no changes"},{name:"--set-exit-if-changed",description:"Return exit code 1 if there are any formatting changes"},{name:["-m","--machine"],description:"Produce machine-readable JSON output"},{name:["-l","--line-length"],description:'Wrap lines longer than this length. Defaults to 80 characters. (defaults to "80")'}]},{name:"gen-l10n",description:"Generate localizations for the current project",options:[...p,{name:"--arb-dir",description:'The directory where the template and translated arb files are located. (defaults to "lib/l10n")'},{name:"--output-dir",description:"The directory where the generated localization classes will be written if the synthetic-package flag is set to false. If output-dir is specified and the synthetic-package flag is enabled, this option will be ignored by the tool. The app must import the file specified in the 'output-localization-file' option from this directory. If unspecified, this defaults to"},{name:"--template-arb-file",description:'The template arb file that will be used as the basis for generating the Dart localization and messages files. (defaults to "app_en.arb")'},{name:"--output-localization-file",description:'The filename for the output localization and localizations delegate classes. (defaults to "app_localizations.dart")'},{name:"--untranslated-messages-file",description:'The location of a file that describes the localization messages have not been translated yet. Using this option will create a JSON file at the target location, in the following format: "locale": ["message_1", "message_2" ... "message_n"] If this option is not specified, a summary of the messages that have not been translated will be printed on the command line'},{name:"--output-class",description:'The Dart class name to use for the output localization and localizations delegate classes. (defaults to "AppLocalizations")'},{name:"--preferred-supported-locales",description:"The list of preferred supported locales for the application. By default, the tool will generate the supported locales list in alphabetical order. Use this flag if you would like to default to a different locale. For example, pass in `en_US` if you would like your app to default to American English if a device supports it.(Pass this option multiple times for defining multiple items",args:{name:"locale"}},{name:"--header",description:'The header to prepend to the generated Dart localizations files. This option takes in a string. For example, pass in "/// All localized files." if you would like this string prepended to the generated Dart file. Alternatively, see the `header-file` option to pass in a text file for longer headers'},{name:"--header-file",description:"The header to prepend to the generated Dart localizations files. The value of this option is the name of the file that contains the header text which will be inserted at the top of each generated Dart file. Alternatively, see the `header` option to pass in a string for a simpler header. This file should be placed in the directory specified in 'arb-dir'"},...Xe,{name:"--gen-inputs-and-outputs-list",description:`When specified, the tool generates a JSON file containing the tool's inputs and outputs named gen_l10n_inputs_and_outputs.json.
|
|
19
|
+
`).filter(t=>t.match(/\w+$/)).map(t=>({name:t.trim().match(/\w+/)[0],active:t.match(/\*/)!=null})).map(t=>({name:`${t.name}${t.active?" \u2705":""}`,icon:"\u{1F426}",description:"Available channels",insertValue:t.name}))}}}},{name:"clean",description:"Delete the build/ and .dart_tool/ directories",options:p},{name:"config",description:"Configure Flutter settings",options:[...p,...st,{name:"--clear-ios-signing-cert",description:"Clear the saved development certificate choice used to sign apps for iOS device deployment"},{name:"--android-sdk",description:"The Android SDK directory"},{name:"--android-studio-dir",description:"The Android Studio install directory"},{name:"--build-dir",description:"The relative path to override a projects build directory",args:{name:"path",template:"folders"}},...lt,...dt,...ct,...pt,...ut,...ht,...ft,...mt,...gt,{name:"--clear-features",description:"Remove all configured features and restore them to the default values"}]},{name:"create",description:"Create a new Flutter project",options:[...p,...R,...ot,...rt,...oe,{name:"--description",description:'The description to use for your new Flutter project. This string ends up in the pubspec.yaml file. (defaults to "A new Flutter project.")'},{name:"--org",description:'The organization responsible for your new Flutter project, in reverse domain name notation. This string is used in Java package names and as prefix in the iOS bundle identifier. (defaults to "com.example")'},{name:"--project-name",description:"The project name for this new Flutter project. This must be a valid dart package name"},{name:["-i","--ios-language"],insertValue:"--ios-language ",description:"[objc, swift (default)]",args:{suggestions:[{name:"objc",type:"argument",icon:"\u{1F4F1}"},{name:"swift (default)",insertValue:"swift",type:"argument",icon:"\u{1F4F1}"}]}},{name:["-a","--android-language"],insertValue:"--android-language ",description:"[java, kotlin (default)]",args:{suggestions:[{name:"java",type:"argument",icon:"\u{1F916}"},{name:"kotlin (default)",insertValue:"kotlin",type:"argument",icon:"\u{1F916}"}]}},{name:"--platforms",description:"The platforms supported by this project. This argument only works when the --template is set to app or plugin. Platform folders (e.g. android/) will be generated in the target project. When adding platforms to a plugin project, the pubspec.yaml will be updated with the requested platform. Adding desktop platforms requires the corresponding desktop config setting to be enabled. [ios (default), android (default), windows (default), linux (default), macos (default), web (default)]",args:{suggestions:[{name:"web",type:"argument",icon:"\u{1F30D}"},{name:"macos",type:"argument",icon:"\u{1F5A5}"},{name:"linux",type:"argument",icon:"\u{1F427}"},{name:"windows",type:"argument",icon:"\u{1FA9F}"},{name:"android",type:"argument",icon:"\u{1F916}"},{name:"ios",type:"argument",icon:"\u{1F4F1}"}]}},{name:["-t","--template"],insertValue:"--template ",description:"Specify the type of project to create. [app] (default) Generate a Flutter application. [module] Generate a project to add a Flutter module to an existing Android or iOS application. [package] Generate a shareable Flutter project containing modular Dart code. [plugin] Generate a shareable Flutter project containing an API in Dart code with a platform-specific implementation for Android, for iOS code, or for both",args:{name:"type",suggestions:[{name:"app (default)",insertValue:"app",type:"argument",icon:"\u{1F4F1}"},{name:"module",type:"argument",icon:"\u{1F9E9}"},{name:"package",type:"argument",icon:"\u{1F4E6}"},{name:"plugin",type:"argument",icon:"\u{1F527}"}]}},{name:["-s","--sample"],insertValue:"--sample ",description:"Specifies the Flutter code sample to use as the main.dart for an application. Implies --template=app. The value should be the sample ID of the desired sample from the API documentation website (http://docs.flutter.dev). An example can be found at https://master-api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html",args:{name:"id"}},{name:"--list-samples",description:"Specifies a JSON output file for a listing of Flutter code samples that can be created with --sample",args:{name:"file path",template:"filepaths"}}]},{name:"devices",description:"List all connected devices",options:[...p,{name:"--machine",description:"Output device information in machine readable structured JSON format"},{name:["-t","--timeout"],description:"(deprecated) Use --device-timeout instead"},j]},{name:"doctor",description:"Show information about the installed tooling",options:[...p,{name:"--android-licenses",description:"Run the Android SDK manager tool to accept the SDK's licenses"}]},{name:"downgrade",description:"Downgrade Flutter to the last active version for the current channel",options:p},{name:"drive",description:"Run integration tests for the project on an attached device or emulator",options:[...p,...re,...Ze,{name:"--use-existing-app",description:"Connect to an already running instance via the given observatory URL. If this option is given, the application will not be automatically started, and it will only be stopped if --no-keep-app-running is explicitly set",args:{name:"URL"}},{name:"--driver",description:'The test file to run on the host (as opposed to the target file to run on the device). By default, this file has the same base name as the target file, but in the "test_driver/" directory instead, and with "_test" inserted just before the extension, so e.g. if the target is "lib/main.dart", the driver will be "test_driver/main_test.dart"',args:{name:"driver"}},...ae,{name:"--driver-port",description:"The port where Webdriver server is launched at. Defaults to 4444",args:{name:"port number"}},...et,{name:"--browser-name",description:"Name of browser where tests will be executed. Following browsers are supported: Chrome, Firefox, Safari (macOS and iOS) and Edge. Defaults to Chrome. [android-chrome, chrome (default), edge, firefox, ios-safari, safari]"},{name:"--browser-dimension",description:'The dimension of browser when running Flutter Web test. This will affect screenshot and all offset-related actions. By default. it is set to 1600,1024 (1600 by 1024). (defaults to "1600,1024")'},...tt,{name:"--chrome-binary",description:"Location of Chrome binary. Works only if 'browser-name' is set to 'chrome'"},{name:"--write-sksl-on-exit",description:"Attempts to write an SkSL file when the drive process is finished to the provided file, overwriting it if necessary"},{name:"--test-arguments",description:"Additional arguments to pass to the Dart VM running The test script"}]},{name:"emulators",description:"List, launch and create emulators",options:[...p,{name:"--launch",insertValue:"--launch '{cursor}'",description:"The full or partial ID of the emulator to launch",args:{name:"emulator id",generators:q.emulators}},{name:"--create",description:"Creates a new Android emulator based on a Pixel device"},{name:"--name",description:"Used with flag --create. Specifies a name for the emulator being created"}]},{name:"format",description:"Format one or more Dart files",options:[...p,{name:["-n","--dry-run"],description:"Show which files would be modified but make no changes"},{name:"--set-exit-if-changed",description:"Return exit code 1 if there are any formatting changes"},{name:["-m","--machine"],description:"Produce machine-readable JSON output"},{name:["-l","--line-length"],description:'Wrap lines longer than this length. Defaults to 80 characters. (defaults to "80")'}]},{name:"gen-l10n",description:"Generate localizations for the current project",options:[...p,{name:"--arb-dir",description:'The directory where the template and translated arb files are located. (defaults to "lib/l10n")'},{name:"--output-dir",description:"The directory where the generated localization classes will be written if the synthetic-package flag is set to false. If output-dir is specified and the synthetic-package flag is enabled, this option will be ignored by the tool. The app must import the file specified in the 'output-localization-file' option from this directory. If unspecified, this defaults to"},{name:"--template-arb-file",description:'The template arb file that will be used as the basis for generating the Dart localization and messages files. (defaults to "app_en.arb")'},{name:"--output-localization-file",description:'The filename for the output localization and localizations delegate classes. (defaults to "app_localizations.dart")'},{name:"--untranslated-messages-file",description:'The location of a file that describes the localization messages have not been translated yet. Using this option will create a JSON file at the target location, in the following format: "locale": ["message_1", "message_2" ... "message_n"] If this option is not specified, a summary of the messages that have not been translated will be printed on the command line'},{name:"--output-class",description:'The Dart class name to use for the output localization and localizations delegate classes. (defaults to "AppLocalizations")'},{name:"--preferred-supported-locales",description:"The list of preferred supported locales for the application. By default, the tool will generate the supported locales list in alphabetical order. Use this flag if you would like to default to a different locale. For example, pass in `en_US` if you would like your app to default to American English if a device supports it.(Pass this option multiple times for defining multiple items",args:{name:"locale"}},{name:"--header",description:'The header to prepend to the generated Dart localizations files. This option takes in a string. For example, pass in "/// All localized files." if you would like this string prepended to the generated Dart file. Alternatively, see the `header-file` option to pass in a text file for longer headers'},{name:"--header-file",description:"The header to prepend to the generated Dart localizations files. The value of this option is the name of the file that contains the header text which will be inserted at the top of each generated Dart file. Alternatively, see the `header` option to pass in a string for a simpler header. This file should be placed in the directory specified in 'arb-dir'"},...Xe,{name:"--gen-inputs-and-outputs-list",description:`When specified, the tool generates a JSON file containing the tool's inputs and outputs named gen_l10n_inputs_and_outputs.json.
|
|
20
20
|
|
|
21
21
|
This can be useful for keeping track of which files of the Flutter project were used when generating the latest set of localizations. For example, the Flutter tool's build system uses this file to keep track of when to call gen_l10n during hot reload.
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ The value of this option is the directory where the JSON file will be generated.
|
|
|
24
24
|
|
|
25
25
|
When null, the JSON file will not be generated`,args:{name:"path to output directory",template:"filepaths"}},...Qe,{name:"--project-dir",description:`When specified, the tool uses the path passed into this option as the directory of the root Flutter project.
|
|
26
26
|
|
|
27
|
-
When null, the relative path to the present working directory will be used`,args:{name:"absolute path to flutter project",template:"filepaths"}},...Ye]},{name:"install",description:"Install a Flutter app on an attached device",options:[...p,M,j]},{name:"logs",description:"Show log output for running Flutter apps",options:[...p,{name:["-c","--clear"],insertValue:"--clear",description:"Clear log history before reading from logs"},j]},{name:"pub",description:"Commands for managing Flutter packages",options:[...p,{name:"add",description:"Add a dependency to pubspec.yaml"},{name:"cache",description:"Work with the Pub system cache"},{name:"deps",description:"Print package dependencies"},{name:"downgrade",description:"Downgrade packages in a Flutter project"},{name:"get",description:"Get packages in a Flutter project"},{name:"global",description:"Work with Pub global packages"},{name:"login",description:"Log into pub.dev"},{name:"logout",description:"Log out of pub.dev"},{name:"outdated",description:"Analyze dependencies to find which ones can be upgraded"},{name:"pub",description:`Pass the remaining arguments to Dart's "pub" tool`},{name:"publish",description:"Publish the current package to pub.dartlang.org"},{name:"remove",description:"Removes a dependency from the current package"},{name:"run",description:"Run an executable from a package"},{name:"test",description:'Run the "test" package'},{name:"upgrade",description:"Upgrade the current package's dependencies to latest versions"},{name:"uploader",description:"Manage uploaders for a package on pub.dev"},{name:"version",description:"Print Pub version"}]},{name:"run",description:"Run your Flutter app on an attached device",options:[...p,...re,{name:"--enable-software-rendering",description:"Enable rendering using the Skia software backend. This is useful when testing Flutter on emulators. By default, Flutter will attempt to either use OpenGL or Vulkan and fall back to software when neither is available"},{name:"--skia-deterministic-rendering",description:"When combined with --enable-software-rendering, provides 100% deterministic Skia rendering"},...nt,...it,...ae,{name:"--pid-file",description:"Specify a file to write the process id to. You can send SIGUSR1 to trigger a hot reload and SIGUSR2 to trigger a hot restart"},...at]},{name:"screenshot",description:"Take a screenshot from a connected device",options:[...p,{name:["-o","--out"],insertValue:"--out ",description:"Location to write the screenshot",args:{name:"path to file",template:"filepaths"}},{name:"--observatory-uri",description:'The observatory URI to connect to. This is required when --type is "skia" or "rasterizer". To find the observatory URI, use "flutter run" and look for "An Observatory ... is available at" in the output',args:{name:"URI"}},{name:"--type",description:"The type of screenshot to retrieve. [device] (default) Delegate to the device's native screenshot capabilities. This screenshots the entire screen currently being displayed (including content not rendered by Flutter, like the device status bar). [rasterizer] Render the Flutter app using the rasterizer. Requires --observatory-uri [skia] Render the Flutter app as a Skia picture. Requires --observatory-uri",args:{name:"type",suggestions:[{name:"device (default)",insertValue:"device",type:"argument",icon:"\u{1F320}"},{name:"rasterizer",type:"argument",icon:"\u{1F320}"},{name:"skia",type:"argument",icon:"\u{1F320}"}]}},{name:"--device-timeout",description:"Time in seconds to wait for devices to attach. Longer timeouts may be necessary for networked devices",args:{name:"seconds"}}]},{name:"symbolize",description:"Symbolize a stack trace from an AOT-compiled Flutter app",options:[...p,{name:["-d","--debug-info"],insertValue:"--debug-info ",description:'A path to the symbols file generated with "--split-debug-info". e.g. /out/android/app.arm64.symbols',args:{name:"file path of .symbols",template:"filepaths"}},{name:["-i","--input"],insertValue:"--input ",description:"A file path containing a Dart stack trace. e.g. /crashes/stack_trace.err",args:{name:"file path",template:"filepaths"}},{name:["-o","--output"],insertValue:"--output ",args:{name:"file path",description:"A file path for a symbolized stack trace to be written to",template:"filepaths"}}]},{name:"test",description:"Run Flutter unit tests for the current project",options:[...p,...
|
|
27
|
+
When null, the relative path to the present working directory will be used`,args:{name:"absolute path to flutter project",template:"filepaths"}},...Ye]},{name:"install",description:"Install a Flutter app on an attached device",options:[...p,M,j]},{name:"logs",description:"Show log output for running Flutter apps",options:[...p,{name:["-c","--clear"],insertValue:"--clear",description:"Clear log history before reading from logs"},j]},{name:"pub",description:"Commands for managing Flutter packages",options:[...p,{name:"add",description:"Add a dependency to pubspec.yaml"},{name:"cache",description:"Work with the Pub system cache"},{name:"deps",description:"Print package dependencies"},{name:"downgrade",description:"Downgrade packages in a Flutter project"},{name:"get",description:"Get packages in a Flutter project"},{name:"global",description:"Work with Pub global packages"},{name:"login",description:"Log into pub.dev"},{name:"logout",description:"Log out of pub.dev"},{name:"outdated",description:"Analyze dependencies to find which ones can be upgraded"},{name:"pub",description:`Pass the remaining arguments to Dart's "pub" tool`},{name:"publish",description:"Publish the current package to pub.dartlang.org"},{name:"remove",description:"Removes a dependency from the current package"},{name:"run",description:"Run an executable from a package"},{name:"test",description:'Run the "test" package'},{name:"upgrade",description:"Upgrade the current package's dependencies to latest versions"},{name:"uploader",description:"Manage uploaders for a package on pub.dev"},{name:"version",description:"Print Pub version"}]},{name:"run",description:"Run your Flutter app on an attached device",options:[...p,...re,{name:"--enable-software-rendering",description:"Enable rendering using the Skia software backend. This is useful when testing Flutter on emulators. By default, Flutter will attempt to either use OpenGL or Vulkan and fall back to software when neither is available"},{name:"--skia-deterministic-rendering",description:"When combined with --enable-software-rendering, provides 100% deterministic Skia rendering"},...nt,...it,...ae,{name:"--pid-file",description:"Specify a file to write the process id to. You can send SIGUSR1 to trigger a hot reload and SIGUSR2 to trigger a hot restart"},...at]},{name:"screenshot",description:"Take a screenshot from a connected device",options:[...p,{name:["-o","--out"],insertValue:"--out ",description:"Location to write the screenshot",args:{name:"path to file",template:"filepaths"}},{name:"--observatory-uri",description:'The observatory URI to connect to. This is required when --type is "skia" or "rasterizer". To find the observatory URI, use "flutter run" and look for "An Observatory ... is available at" in the output',args:{name:"URI"}},{name:"--type",description:"The type of screenshot to retrieve. [device] (default) Delegate to the device's native screenshot capabilities. This screenshots the entire screen currently being displayed (including content not rendered by Flutter, like the device status bar). [rasterizer] Render the Flutter app using the rasterizer. Requires --observatory-uri [skia] Render the Flutter app as a Skia picture. Requires --observatory-uri",args:{name:"type",suggestions:[{name:"device (default)",insertValue:"device",type:"argument",icon:"\u{1F320}"},{name:"rasterizer",type:"argument",icon:"\u{1F320}"},{name:"skia",type:"argument",icon:"\u{1F320}"}]}},{name:"--device-timeout",description:"Time in seconds to wait for devices to attach. Longer timeouts may be necessary for networked devices",args:{name:"seconds"}}]},{name:"symbolize",description:"Symbolize a stack trace from an AOT-compiled Flutter app",options:[...p,{name:["-d","--debug-info"],insertValue:"--debug-info ",description:'A path to the symbols file generated with "--split-debug-info". e.g. /out/android/app.arm64.symbols',args:{name:"file path of .symbols",template:"filepaths"}},{name:["-i","--input"],insertValue:"--input ",description:"A file path containing a Dart stack trace. e.g. /crashes/stack_trace.err",args:{name:"file path",template:"filepaths"}},{name:["-o","--output"],insertValue:"--output ",args:{name:"file path",description:"A file path for a symbolized stack trace to be written to",template:"filepaths"}}]},{name:"test",description:"Run Flutter unit tests for the current project",options:[...p,...R,...B,...G,N,{name:"--web-renderer",description:"The renderer implementation to use when building for the web. Possible values are: html - always use the HTML renderer. This renderer uses a combination of HTML, CSS, SVG, 2D Canvas, and WebGL. This is the default. canvaskit - always use the CanvasKit renderer. This renderer uses WebGL and WebAssembly to render graphics. auto - use the HTML renderer on mobile devices, and CanvasKit on desktop devices. [auto (default), canvaskit, html]"},{name:"--name",description:"A regular expression matching substrings of the names of tests to run",args:{name:"regexp"}},{name:"--plain-name",description:"A plain-text substring of the names of tests to run",args:{name:"substring"}},{name:["-t","--tags"],insertValue:"--tags",description:"Run only tests associated with tags"},{name:["-x","--exclude-tags"],insertValue:"--exclude-tags",description:"Run only tests WITHOUT given tags"},{name:"--start-paused",description:"Start in a paused mode and wait for a debugger to connect. You must specify a single test file to run, explicitly. Instructions for connecting with a debugger are printed to the console once the test has started"},{name:"--coverage",description:"Whether to collect coverage information"},{name:"--merge-coverage",description:'Whether to merge coverage data with "coverage/lcov.base.info". Implies collecting coverage data. (Requires lcov)'},{name:"--coverage-path",description:'Where to store coverage information (if coverage is enabled). (defaults to "coverage/lcov.info")'},{name:"--update-goldens",description:"Whether matchesGoldenFile() calls within your test methods should update the golden files rather than test for an existing match"},{name:["--j","--concurrency"],insertValue:"--concurrency ",description:'The number of concurrent test processes to run. (defaults to "6")',args:{name:"jobs"}},...$e,{name:"--test-randomize-ordering-seed",description:'The seed to randomize the execution order of test cases. Must be a 32bit unsigned integer or "random". If "random", pick a random seed to use. If not passed, do not randomize test case execution order'},{name:["-r","--reporter"],insertValue:"--reporter",description:`Set how to print test results.
|
|
28
28
|
[compact] (default) A single line, updated continuously.
|
|
29
29
|
[expanded] A separate line for each update.
|
|
30
30
|
[json] A machine-readable format (see https://dart.dev/go/test-docs/json_reporter.md).
|
package/build/gh.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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(
|
|
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:
|
|
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(O=>{"use strict";var ue=O&&O.__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(O,"__esModule",{value:!0});O.filepaths=O.folders=O.getCurrentInsertedDirectory=void 0;O.sortFilesAlphabetically=J;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)),"../"]}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}`};O.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 v=g.length-1,j=g[v];do{if(c.has(j))return!0;v-=1,j=[g[v],j].join(".")}while(v>=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:v,currentWorkingDirectory:j,searchTerm:f}=R,T=(g=(0,O.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:v,context:{templateType:P}})}return k(b(M))}catch{return[]}})}}O.folders=Object.assign(()=>V({showFolders:"only"}),Object.freeze(V({showFolders:"only"})));O.filepaths=Object.assign(V,Object.freeze(V()))});var Q=q(x=>{"use strict";var L=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.valueList=he;x.keyValue=fe;x.keyValueList=ye;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 L(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 L(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)=>L(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)})}}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)=>L(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)})}}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)=>L(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 v=u.split(t).map(j=>j.slice(j.indexOf(e)+e.length));return H(v,g)})}}});var Y=q(A=>{"use strict";var be=A&&A.__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(A,"__esModule",{value:!0});A.ai=Re;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]}),v=JSON.parse(g.stdout);return(a=v?.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:[]})}}});var Z=q(w=>{"use strict";var je=w&&w.__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=w&&w.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&je(t,e,n)};Object.defineProperty(w,"__esModule",{value:!0});w.ai=w.folders=w.filepaths=void 0;var X=z();Object.defineProperty(w,"filepaths",{enumerable:!0,get:function(){return X.filepaths}});Object.defineProperty(w,"folders",{enumerable:!0,get:function(){return X.folders}});ke(Q(),w);var Te=Y();Object.defineProperty(w,"ai",{enumerable:!0,get:function(){return Te.ai}})});var N=me(Z(),1),xe=e=>e.startsWith("warning:")||e.startsWith("error:")?e.split(`
|
|
3
3
|
`).slice(1).join(`
|
|
4
4
|
`):e,Ee=e=>{let t=xe(e);return t.startsWith("fatal:")?[]:t.split(`
|
|
5
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"}}},
|
|
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"}}},qe={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
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
8
|
If the "OWNER/" portion of the "OWNER/REPO" repository argument is omitted, it
|
|
9
9
|
defaults to the name of the authenticating user.
|
|
@@ -35,4 +35,4 @@ This can be overridden with the '--source' flag`,args:{name:"destination-reposit
|
|
|
35
35
|
With no argument, the repository for the current directory is displayed.
|
|
36
36
|
With '--web', open the repository in a web browser instead.
|
|
37
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};
|
|
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=qe;export{_e as default};
|