@tabsmith/autocomplete-specs 1.0.0 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/codeburn.js +1 -0
- 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/dsh.js +2 -0
- 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 +6 -37
- 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/@magnolia/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
`).map(d=>({name:d,icon:"\u{1F4E6}",description:"Global dependency"}))}}},V={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(n,[s]){if(n.trim()=="")return[];try{let c=JSON.parse(n),d=c.scripts,a=c.fig||{};if(d)return Object.entries(d).map(([r,f])=>{let u=s==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",m=a[r];return{name:r,icon:u,description:f,priority:51,...m}})}catch(c){console.error(c)}return[]}},S={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},i={name:"--json",description:"Show output in json format"},T={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},h={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},x={name:["-l","--long"],description:"Show extended information"},t=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:U,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],q=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...t],L=[{name:["-a","-all"],description:"Show all outdated or installed packages"},i,x,h,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},S,T,...t],e={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},R={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},o={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},g={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},y={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},k={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},E={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:b,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},S,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},e,R,T,g,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},k,...t]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...t,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},g,y,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:V}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}}]},{name:"access",description:"Set access controls on private packages"},{name:["adduser","login"],description:"Add a registry user account",options:[e,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[k,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...t]}],options:[...t,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},i,T]},{name:"bin",description:"Print the folder where npm will install executables",options:[S]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:b,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},e]},{name:"cache",description:"Manipulates packages cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete all data out of the cache folder"},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},g,y,R,e]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},i]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[e]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:b,debounce:!0,isVariadic:!0},options:[...t,e,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[e]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:A}},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[x]},{name:"hook",description:"Manage registry hooks"},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[e,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:L,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[e,o]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[e,o]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[e,o,i,h]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","-all"],description:"Show all outdated or installed packages"},i,x,h,{name:"-g",description:"Checks globally"},...t]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[e]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[e,o]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[e,o]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[i,k,...t,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[e]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[i,...t]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[i,...t,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...t,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[e,i,h,o]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[e,i,h,o],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[e,o]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[e,o]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[T,k,i,{name:"--production",description:"Remove the packages specified in your devDependencies"},...t]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...t,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},k,o]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[S,...t,g,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:b,debounce:!0,isVariadic:!0},options:[...t,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[g,y,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[x,i,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},h,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},e,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:t},{name:"shrinkwrap",description:"Lock down dependency versions for publication"},{name:"star",description:"Mark your favorite packages",args:{name:"pkg",description:"Package to mark as favorite"},options:[e,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[e]},{name:"start",description:"Start a package",options:[g,y,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[g,y,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[e,o]},{name:"destroy",args:{name:"scope:team"},options:[e,o]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[e,o]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[e,o]},{name:"ls",args:{name:"scope|scope:team"},options:[e,i,h]}]},{name:["test","tst","t"],description:"Test a package",options:[g,y]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[i,h]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[e,o]},O("uninstall"),O(["r","rm"]),O("un"),O("remove"),O("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[k,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...t]},{name:"unstar",description:"Remove an item from your favorite packages",args:{name:"pkg",description:"Package to unmark as favorite"},options:[e,o,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up"],description:"Update a package",options:[{name:"-g",description:"Update global package"},{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder"},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},T,g,{name:"--no-audit",description:"Submit audit reports alongside the current npm command to the default registry and all registries configured for scopes"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},k,...t]},{name:"version",description:"Bump a package version",options:[...t,i,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...t,i]},{name:"whoami",description:"Display npm username",options:[e]}]};var p=n=>({name:["-p","--path"],description:n,args:{name:"path",template:"folders"}}),w=n=>({name:["-P","--prototype"],description:n,args:{name:"prototype"}}),C={...b,custom:F(["magnolia-light-module"])},z={name:"mgnl",description:"Magnolia CLI is a command line interface (CLI) tool to set up and facilitate light development with Magnolia",icon:"https://avatars.githubusercontent.com/u/25686615?s=200&v=4",subcommands:[{name:"add-availability",description:"This command makes a component available to a page",args:[{name:"<[module-id:]path-to-component>",description:"The component you want to make available"},{name:"<path-to-page[@area]>",description:"The page you want to make the component available to"}],options:[p("The path to the light module that contains the page template"),{name:"-g",description:"Add this parameter to autogenerate the component instead of providing plain availability"}]},{name:"create-app",description:"This command creates a content type and an app",args:{name:"name",description:"The name of the new app. The name cannot contain spaces"},options:[p("The path to the light module where you want to create the app"),w("The name of the prototype variant to create the app")]},{name:"create-block",description:"This command creates a block",args:{name:"blockName",description:"The name of the new block definition. The block name cannot contain spaces"},options:[p("The path to the light module to add the new block to"),w("The name of the prototype variant to create the block")]},{name:"create-component",description:"This command creates a new component template",args:{name:"name",description:"The name of the new component template. The name cannot contain spaces"},options:[p("The path to the light module you want to add the component template to"),{name:["-a","--available"],description:"The page you want to make the component available to",args:{name:"<path-to-page[@area]>"}},{name:["-g","--autogenerate"],description:"Add this parameter to autogenerate the component instead of providing plain availability",args:{name:"<path-to-page[@area]>"}},w("The name of the prototype variant to create the component")]},{name:"create-content-type",description:"This command creates a content type",args:{name:"name",description:"The name of the new content type. The name cannot contain spaces"},options:[{name:"-a",description:"Creates also a new app that references the content type. With the -a option, the command is functionally equivalent to the create-app command"},p("The path to the light module where you want to create the content type"),w("The name of the prototype variant to create the content type")]},{name:"create-light-module",description:"This command creates a new light module in the form of a set of empty light module folders",args:{name:"moduleName",description:"The name of the new light module. Avoid spaces and special characters since this name is used as folder name"},options:[p("The path of the parent directory for the new light module"),w("The name of the prototype variant to create the light module")]},{name:"create-page",description:"This command creates a new page template",args:{name:"templateName",description:"The name of the new page template. The template name cannot contain spaces"},options:[p("The path to the light module to add the new template to"),w("The name of the prototype variant to create the page")]},{name:"create-virtual-uri",description:"The command creates a virtual URI mapping configuration file (a YAML definition file) in the light module",args:{name:"virtualUriName",description:"The name of the new URI configuration"},options:[p("The path to the light module"),{name:["-f","--formUri"],description:"The pattern to be matched in the requested URI. Enclose the <uri> value in quotes",args:{name:"uri"}},{name:["-t","--toUri"],description:"A concrete URI that the request is mapped to. Enclose the <prefix:uri> value in quotes",args:{name:"<prefix:uri>"}},w("The name of the prototype variant to create the mapping")]},{name:"customize-local-config",description:"Run this command to create a local configuration",options:[p("The path into which the mgnl-cli-prototypes folder and mgnl-cli.json file are installed")]},{name:"install",description:"Downloads and installs one or more light modules from npm to the light module directory",args:{name:"light-module-name",description:"At least one name of a light module to be downloaded from npm. If you are installing more than one module from the repository, separate the module names with a space",isVariadic:!0,debounce:!0,generators:C},options:[p("The path to the light-modules folder")]},{name:"jumpstart",description:"This command downloads, unpacks and pre-configures a Magnolia Tomcat server together with a specific webapp",options:[p("The path to the light modules root folder which is observed for changes"),{name:["-m","--magnolia-version"],description:"Use to choose a specific version of the Magnolia webapp. If not provided, the latest stable version of the specified webapp is downloaded",args:{name:"version"}},{name:["-i","--install-sample-module"],description:"If provided, a sample light module under the light modules root folder with the given name is created",args:{name:"name"}},{name:["-s","--snapshot"],description:"Downloads the latest snapshot development version of the specified webapp"},{name:["-w","--webapp"],description:"Use to directly specify which Magnolia webapp you want to install",args:{name:"webapp",suggestions:[{name:"magnolia-empty-webapp"},{name:"magnolia-community-webapp"},{name:"magnolia-community-demo-webapp"},{name:"magnolia-dx-core-webapp"},{name:"magnolia-dx-core-demo-webapp"}]}}]},{name:"tab-completion",description:"Run the command to install or uninstall autocompletion for Magnolia CLI commands",args:{name:"command",suggestions:[{name:"install"},{name:"uninstall"}]}},{name:"search",description:"Searches for Magnolia-related packages available from npm",args:{name:"query",generators:C,description:"The search query sent to the npm's API. The query can contain multiple terms separated with commas and no spaces"}},{name:"start",description:"This command starts up Magnolia and displays the main log file",options:[p("The path to the apache-tomcat folder"),{name:"-d",description:"Does NOT ignore the open files limit check. The files limit check is ignored by default"}]}],options:[{name:["--help","-h"],description:"Show help for mgnl",isPersistent:!0}]},N=z;export{N as default};
|
|
1
|
+
function T(t){return{name:t,description:"Uninstall a package",args:{name:"package",generators:S,filterStrategy:"fuzzy",isVariadic:!0},options:W}}var A=t=>(t.match(/@/g)||[]).length,P=t=>async(s,p,d)=>{let i=s[s.length-1];if(i==="")return[];let r=t&&t.length>0?`+keywords:${t.join(",")}`:"",h=["-s","-H","Accept: application/json",r?`https://api.npms.io/v2/search?size=20&q=${i}${r}`:`https://api.npms.io/v2/search/suggestions?q=${i}&size=20`],l=["-s","-H","Accept: application/vnd.npm.install-v1+json",`https://registry.npmjs.org/${i.slice(0,-1)}`],U=g=>p({command:"curl",args:g[g.length-1]==="@"?l:h}),C=i.startsWith("@")?A(i)>1:i.includes("@");try{let g=JSON.parse((await U(i)).stdout);if(C){let x=Object.entries(g["dist-tags"]||{}).map(([I,N])=>({name:I,description:N}));return x.push(...Object.keys(g.versions).map(I=>({name:I})).reverse()),x}return(r?g.results:g).map(x=>({name:x.package.name,description:x.package.description}))}catch(g){return console.error({error:g}),[]}},y={trigger:(t,s)=>s.startsWith("@")?!(A(s)>1&&A(t)>1):!(s.includes("@")&&t.includes("@")),getQueryTerm:"@",cache:{ttl:1e3*60*60*24*2},custom:P()},z={custom:async(t,s)=>{let{stdout:p}=await s({command:"npm",args:["prefix"]}),{stdout:d}=await s({command:"cat",args:[`${p}/package.json`]}),i=[];try{if(d.trim()=="")return i;let w=JSON.parse(d).workspaces;if(w)for(let h of w)i.push({name:h,description:"Workspaces"})}catch(r){console.log(r)}return i}},S={trigger:t=>t==="-g"||t==="--global",custom:async function(t,s){if(!t.includes("-g")&&!t.includes("--global")){let{stdout:p}=await s({command:"npm",args:["prefix"]}),{stdout:d}=await s({command:"cat",args:[`${p}/package.json`]}),i=JSON.parse(d),r=i.dependencies??{},w=i.devDependencies,h=i.optionalDependencies??{};return Object.assign(r,w,h),Object.keys(r).filter(l=>!t.some(C=>C===l)).map(l=>({name:l,icon:"\u{1F4E6}",description:r[l]?"dependency":h[l]?"optionalDependency":"devDependency"}))}else{let{stdout:p}=await s({command:"bash",args:["-c","ls -1 `npm root -g`"]});return p.split(`
|
|
2
|
+
`).map(d=>({name:d,icon:"\u{1F4E6}",description:"Global dependency"}))}}},E={cache:{strategy:"stale-while-revalidate",cacheByDirectory:!0},script:["bash","-c","until [[ -f package.json ]] || [[ $PWD = '/' ]]; do cd ..; done; cat package.json"],postProcess:function(t,[s]){if(t.trim()=="")return[];try{let p=JSON.parse(t),d=p.scripts,i=p.fig||{};if(d)return Object.entries(d).map(([r,w])=>{let h=s==="yarn"?"fig://icon?type=yarn":"fig://icon?type=npm",l=i[r];return{name:r,icon:h,description:w,priority:51,...l}})}catch(p){console.error(p)}return[]}},O={name:["-g","--global"],description:"Operates in 'global' mode, so that packages are installed into the prefix folder instead of the current working directory"},n={name:"--json",description:"Show output in json format"},f={name:"--omit",description:"Dependency types to omit from the installation tree on disk",args:{name:"Package type",default:"dev",suggestions:["dev","optional","peer"]},isRepeatable:3},k={name:["-p","--parseable"],description:"Output parseable results from commands that write to standard output"},j={name:["-l","--long"],description:"Show extended information"},a=[{name:["-w","--workspace"],description:"Enable running a command in the context of the configured workspaces of the current project",args:{name:"workspace",generators:z,isVariadic:!0}},{name:["-ws","--workspaces"],description:"Enable running a command in the context of all the configured workspaces"}],W=[{name:["-S","--save"],description:"Package will be removed from your dependencies"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:"-g",description:"Uninstall global package"},...a],_=[{name:["-a","--all"],description:"Show all outdated or installed packages"},n,j,k,{name:"--depth",description:"The depth to go when recursing packages",args:{name:"depth"}},{name:"--link",description:"Limits output to only those packages that are linked"},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--no-unicode",description:"Uses unicode characters in the tree output"},O,f,...a],e={name:"--registry",description:"The base URL of the npm registry",args:{name:"registry"}},L={name:"--verbose",description:"Show extra information",args:{name:"verbose"}},o={name:"--otp",description:"One-time password from a two-factor authenticator",args:{name:"otp"}},m={name:"--ignore-scripts",description:"If true, npm does not run scripts specified in package.json files"},v={name:"--script-shell",description:"The shell to use for scripts run with the npm exec, npm run and npm init <pkg> commands",args:{name:"script-shell"}},u={name:"--dry-run",description:"Indicates that you don't want npm to make any changes and that it should only report what it would have done"},D={name:"--install-strategy",description:"Sets the strategy for installing packages in node_modules",args:{name:"strategy",default:"hoisted",suggestions:["hoisted","nested","shallow","linked"]}},V={name:"--install-links",description:"Install file: protocol dependencies outside the project root as regular dependencies instead of creating a symlink"},R={name:"--foreground-scripts",description:"Run all build scripts for installed packages in the foreground process, sharing standard input, output, and error with the main npm process"},q={name:"--allow-git",description:"Limits the ability for npm to install git dependencies",args:{name:"allow-git",suggestions:["all","none","root"]}},M={name:"--allow-remote",description:"Limits the ability for npm to install user-supplied tarball URL dependencies",args:{name:"allow-remote",suggestions:["all","none","root"]}},F=[{name:"--allow-publish",description:"Allows the trusted publisher to run npm publish for the package"},{name:["--allow-stage-publish","--allow-staged-publish"],description:"Allows the trusted publisher to run npm stage for the package"}],J={name:"npm",parserDirectives:{flagsArePosixNoncompliant:!0},description:"Node package manager",subcommands:[{name:["install","i","add"],description:"Install a package and its dependencies",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[{name:["-P","--save-prod"],description:"Package will appear in your `dependencies`. This is the default unless `-D` or `-O` are present"},{name:["-D","--save-dev"],description:"Package will appear in your `devDependencies`"},{name:["-O","--save-optional"],description:"Package will appear in your `optionalDependencies`"},{name:"--no-save",description:"Prevents saving to `dependencies`"},{name:["-E","--save-exact"],description:"Saved dependencies will be configured with an exact version rather than using npm's default semver range operator"},{name:["-B","--save-bundle"],description:"Saved dependencies will also be added to your bundleDependencies list"},O,D,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--legacy-peer-deps",description:"Bypass peerDependency auto-installation. Emulate install behavior of NPM v4 through v6"},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},e,L,f,m,R,q,M,V,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},u,...a]},{name:["run","run-script"],description:"Run arbitrary package scripts",options:[...a,{name:"--if-present",description:"Npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts section of package.json"},{name:"--silent",description:""},m,v,{name:"--",args:{name:"args",isVariadic:!0}}],args:{name:"script",description:"Script to run from your package.json",filterStrategy:"fuzzy",generators:E}},{name:"init",description:"Trigger the initialization",options:[{name:["-y","--yes"],description:"Automatically answer 'yes' to any prompts that npm might print on the command line"},{name:"-w",description:"Create the folders and boilerplate expected while also adding a reference to your project workspaces property",args:{name:"dir"}},{name:"--init-private",description:"Set the private field to true in package.json"},{name:"--scope",description:"Create a scoped package",args:{name:"scope",description:"Scope name"}}]},{name:"access",description:"Set access level on published packages",subcommands:[{name:"list",description:"List packages or collaborators",subcommands:[{name:"packages",description:"List all packages accessible by a user, scope or team",args:[{name:"user|scope|scope:team",isOptional:!0},{name:"package",isOptional:!0}]},{name:"collaborators",description:"List all users with access to a package",args:[{name:"package",isOptional:!0},{name:"user",isOptional:!0}]}]},{name:"get",description:"Get the access status of a package",subcommands:[{name:"status",description:"Get the visibility status of a package",args:{name:"package",isOptional:!0}}]},{name:"set",description:"Set the visibility status or publishing MFA requirement of a package",args:[{name:"status|mfa",suggestions:["status=public","status=private","mfa=none","mfa=publish","mfa=automation"]},{name:"package",isOptional:!0}]},{name:"grant",description:"Grant a team read-only or read-write access to a package",args:[{name:"permissions",suggestions:["read-only","read-write"]},{name:"scope:team"},{name:"package",isOptional:!0}]},{name:"revoke",description:"Revoke a team's access to a package",args:[{name:"scope:team"},{name:"package",isOptional:!0}]}],options:[n,o,e]},{name:"adduser",description:"Add a registry user account",deprecated:!0,options:[e,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:"login",description:"Login to a registry user account",options:[e,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}},{name:"--auth-type",description:"What authentication strategy to use with login",args:{name:"auth-type",default:"web",suggestions:["legacy","web"]}}]},{name:"audit",description:"Run a security audit",subcommands:[{name:"signatures",description:"Verify registry signatures and provenance attestations of downloaded packages",options:[n,{name:"--include-attestations",description:"Include full sigstore attestation bundles in the JSON output"}]},{name:"fix",description:"If the fix argument is provided, then remediations will be applied to the package tree",options:[u,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...a]}],options:[...a,{name:"--audit-level",description:"The minimum level of vulnerability for npm audit to exit with a non-zero exit code",args:{name:"audit",suggestions:["info","low","moderate","high","critical","none"]}},{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},n,f]},{name:"bin",description:"Print the folder where npm will install executables",deprecated:!0,options:[O]},{name:["bugs","issues"],description:"Report bugs for a package in a web browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm bugs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]},e]},{name:"cache",description:"Manipulates packages and npx cache",subcommands:[{name:"add",description:"Add the specified packages to the local cache"},{name:"clean",description:"Delete a single entry or all entries out of the cache folder",args:{name:"key",isOptional:!0}},{name:"ls",description:"List given entries or all entries in the local cache",args:{name:"name@version",isOptional:!0,isVariadic:!0}},{name:"verify",description:"Verify the contents of the cache folder, garbage collecting any unneeded data, and verifying the integrity of the cache index and all cached data"},{name:"npx",description:"Manipulates the npx cache",subcommands:[{name:"ls",description:"List all entries in the npx cache"},{name:"rm",description:"Remove given entries or all entries from the npx cache",args:{name:"key",isOptional:!0,isVariadic:!0}},{name:"info",description:"Get detailed information about given entries in the npx cache",args:{name:"key",isVariadic:!0}}]}],options:[{name:"--cache",args:{name:"cache"},description:"The location of npm's cache directory"}]},{name:["ci","clean-install","install-clean"],description:"Install a project with a clean slate",options:[{name:"--audit",description:'When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes',args:{name:"audit",suggestions:["true","false"]},exclusiveOn:["--no-audit"]},{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command",exclusiveOn:["--audit"]},m,v,L,e,D,f,R,q,M]},{name:"cit",description:"Install a project with a clean slate and run tests"},{name:"clean-install-test",description:"Install a project with a clean slate and run tests"},{name:"completion",description:"Tab completion for npm"},{name:["config","c"],description:"Manage the npm configuration files",subcommands:[{name:"set",description:"Sets the config key to the value",args:[{name:"key"},{name:"value"}],options:[{name:["-g","--global"],description:"Sets it globally"}]},{name:"get",description:"Echo the config value to stdout",args:{name:"key"}},{name:"list",description:"Show all the config settings",options:[{name:"-g",description:"Lists globally installed packages"},{name:"-l",description:"Also shows defaults"},n]},{name:"delete",description:"Deletes the key from all configuration files",args:{name:"key"}},{name:"edit",description:"Opens the config file in an editor",options:[{name:"--global",description:"Edits the global config"}]},{name:"fix",description:"Attempts to repair invalid configuration items, such as attaching authentication configuration to the configured registry"}]},{name:"create",description:"Create a package.json file"},{name:["dedupe","ddp"],description:"Reduce duplication in the package tree"},{name:"deprecate",description:"Deprecate a version of a package",options:[e]},{name:"diff",description:"The registry diff command",args:{name:"paths",isOptional:!0,isVariadic:!0,template:"filepaths"},options:[{name:"--diff",description:"Define arguments to compare in npm diff",isRepeatable:2,args:{name:"package-spec"}},{name:"--diff-name-only",description:"Prints only filenames when using npm diff"},{name:"--diff-unified",description:"The number of lines of context to print in npm diff",args:{name:"number",default:"3"}},{name:"--diff-ignore-all-space",description:"Ignore whitespace when comparing lines in npm diff"},{name:"--diff-no-prefix",description:"Do not show any source or destination prefix in npm diff output"},{name:"--diff-src-prefix",description:"Source prefix to be used in npm diff output",args:{name:"path",default:"a/"}},{name:"--diff-dst-prefix",description:"Destination prefix to be used in npm diff output",args:{name:"path",default:"b/"}},{name:"--diff-text",description:"Treat all files as text in npm diff"},O,{name:"--tag",description:"The tag used to fetch the tarball that will be compared with the local files",args:{name:"tag",default:"latest"}},...a]},{name:"dist-tag",description:"Modify package distribution tags"},{name:["docs","home"],description:"Open documentation for a package in a web browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[...a,e,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm docs command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"doctor",description:"Check your npm environment",options:[e]},{name:"edit",description:"Edit an installed package",options:[{name:"--editor",description:"The command to run for npm edit or npm config edit"}]},{name:["exec","x"],description:"Run a command from a local or remote npm package",args:{name:"command",isOptional:!0,isVariadic:!0},options:[{name:"--package",description:"The package or packages to install for npm exec",isRepeatable:!0,args:{name:"package-spec",generators:y,debounce:!0}},{name:["-c","--call"],description:"Custom command to be run along with the installed packages",args:{name:"call"}},{name:["-y","--yes"],description:"Automatically answer 'yes' to the prompt to install missing packages",exclusiveOn:["--no"]},{name:"--no",description:"Automatically answer 'no' to the prompt to install missing packages",exclusiveOn:["-y","--yes"]},...a]},{name:["explain","why"],description:"Explain installed packages",args:{name:"package-spec",filterStrategy:"fuzzy",generators:S,isVariadic:!0},options:[n,...a]},{name:"explore",description:"Browse an installed package",args:{name:"package",filterStrategy:"fuzzy",generators:S}},{name:"find-dupes",description:"Find duplication in the package tree",options:[D,f,m,...a]},{name:"fund",description:"Retrieve funding information"},{name:"get",description:"Echo the config value to stdout"},{name:"help",description:"Get help on npm",args:{name:"term",isVariadic:!0,description:"Terms to search for"},options:[{name:"--viewer",description:"The program to use to view help content",args:{name:"viewer"}}]},{name:"help-search",description:"Search npm help documentation",args:{name:"text",description:"Text to search for"},options:[j]},{name:"hook",description:"Manage registry hooks",deprecated:!0},{name:"install-ci-test",description:"Install a project with a clean slate and run tests"},{name:"install-scripts",description:"Manage which dependencies are allowed to run install scripts",subcommands:[{name:"approve",description:"Approve install scripts for packages, pinned to their installed version",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:S},options:[{name:"--all",description:"Approve all currently-installed install scripts"}]},{name:"deny",description:"Deny install scripts for packages so they stay blocked",args:{name:"pkg",isOptional:!0,isVariadic:!0,generators:S},options:[{name:"--all",description:"Deny all currently-installed install scripts"}]},{name:"ls",description:"List packages whose install scripts still need review"},{name:"prune",description:"Remove stale allowScripts entries",options:[u]}]},{name:"install-test",description:"Install package(s) and run tests"},{name:"it",description:"Install package(s) and run tests"},{name:"link",description:"Symlink a package folder",args:{name:"path",template:"filepaths"}},{name:"ln",description:"Symlink a package folder"},{name:"logout",description:"Log out of the registry",options:[e,{name:"--scope",description:"Associate an operation with a scope for a scoped registry",args:{name:"scope",description:"Scope name"}}]},{name:["ls","list"],description:"List installed packages",options:_,args:{name:"[@scope]/pkg",isVariadic:!0}},{name:"org",description:"Manage orgs",subcommands:[{name:"set",description:"Add a user to an org or manage roles",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"},{name:"role",isOptional:!0,suggestions:["developer","admin","owner"]}],options:[e,o]},{name:"rm",description:"Remove a user from an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name"}],options:[e,o]},{name:"ls",description:"List users in an org or see what roles a particular user has in an org",args:[{name:"orgname",description:"Organization name"},{name:"username",description:"User name",isOptional:!0}],options:[e,o,n,k]}]},{name:"outdated",description:"Check for outdated packages",args:{name:"[<@scope>/]<pkg>",isVariadic:!0,isOptional:!0},options:[{name:["-a","--all"],description:"Show all outdated or installed packages"},n,j,k,{name:"-g",description:"Checks globally"},...a]},{name:["owner","author"],description:"Manage package owners",subcommands:[{name:"ls",description:"List all the users who have access to modify a package and push new versions. Handy when you need to know who to bug for help",args:{name:"[@scope/]pkg"},options:[e]},{name:"add",description:"Add a new user as a maintainer of a package. This user is enabled to modify metadata, publish new versions, and add other owners",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[e,o]},{name:"rm",description:"Remove a user from the package owner list. This immediately revokes their privileges",args:[{name:"user"},{name:"[@scope/]pkg"}],options:[e,o]}]},{name:"pack",description:"Create a tarball from a package",args:{name:"[<@scope>/]<pkg>"},options:[n,u,...a,{name:"--pack-destination",description:"Directory in which npm pack will save tarballs",args:{name:"pack-destination",template:["folders"]}}]},{name:"ping",description:"Ping npm registry",options:[e]},{name:"pkg",description:"Manages your package.json",subcommands:[{name:"get",description:"Retrieves a value key, defined in your package.json file. It is possible to get multiple values and values for child fields",args:{name:"field",description:"Name of the field to get. You can view child fields by separating them with a period",isVariadic:!0},options:[n,...a]},{name:"set",description:"Sets a value in your package.json based on the field value. It is possible to set multiple values and values for child fields",args:{name:"field",description:"Name of the field to set. You can set child fields by separating them with a period",isVariadic:!0},options:[n,...a,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"delete",description:"Deletes a key from your package.json",args:{name:"key",description:"Name of the key to delete. You can delete child fields by separating them with a period",isVariadic:!0},options:[...a,{name:["-f","--force"],description:"Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input. Allow clobbering existing values in npm pkg",isDangerous:!0}]},{name:"fix",description:"Auto corrects common errors in your package.json",options:a}]},{name:"prefix",description:"Display prefix",options:[{name:["-g","--global"],description:"Print the global prefix to standard out"}]},{name:"profile",description:"Change settings on your registry profile",subcommands:[{name:"get",description:"Display all of the properties of your profile, or one or more specific properties",args:{name:"property",isOptional:!0,description:"Property name"},options:[e,n,k,o]},{name:"set",description:"Set the value of a profile property",args:[{name:"property",description:"Property name",suggestions:["email","fullname","homepage","freenode","twitter","github"]},{name:"value",description:"Property value"}],options:[e,n,k,o],subcommands:[{name:"password",description:"Change your password. This is interactive, you'll be prompted for your current password and a new password"}]},{name:"enable-2fa",description:"Enables two-factor authentication",args:{name:"mode",description:"Mode for two-factor authentication. Defaults to auth-and-writes mode",isOptional:!0,suggestions:[{name:"auth-only",description:"Require an OTP when logging in or making changes to your account's authentication"},{name:"auth-and-writes",description:"Requires an OTP at all the times auth-only does, and also requires one when publishing a module, setting the latest dist-tag, or changing access via npm access and npm owner"}]},options:[e,o]},{name:"disable-2fa",description:"Disables two-factor authentication",options:[e,o]}]},{name:"prune",description:"Remove extraneous packages",args:{name:"[<@scope>/]<pkg>",isOptional:!0},options:[f,u,n,{name:"--production",description:"Remove the packages specified in your devDependencies"},...a]},{name:"publish",description:"Publish a package",args:{name:"tarball|folder",isOptional:!0,description:"A url or file path to a gzipped tar archive containing a single folder with a package.json file inside | A folder containing a package.json file",template:["folders"]},options:[{name:"--tag",description:"Registers the published package with the given tag",args:{name:"tag"}},...a,{name:"--access",description:"Sets scoped package to be publicly viewable if set to 'public'",args:{default:"restricted",suggestions:["restricted","public"]}},u,o,{name:"--provenance",description:"When publishing from a supported cloud CI/CD system, the package will be publicly linked to where it was built and published from",exclusiveOn:["--provenance-file"]},{name:"--provenance-file",description:"When publishing, the provenance bundle at the given path will be used",args:{name:"file",template:"filepaths"},exclusiveOn:["--provenance"]}]},{name:"query",description:"Retrieve a filtered list of packages",args:{name:"selector",description:"Dependency selector, e.g. ':root > .prod'"},options:[O,...a,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--expect-results",description:"Exit with an error code if the query has no results",exclusiveOn:["--no-expect-results","--expect-result-count"]},{name:"--no-expect-results",description:"Exit with an error code if the query has any results",exclusiveOn:["--expect-results","--expect-result-count"]},{name:"--expect-result-count",description:"Exit with an error code if the query does not return exactly this many results",args:{name:"count"},exclusiveOn:["--expect-results","--no-expect-results"]}]},{name:["rebuild","rb"],description:"Rebuild a package",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[O,...a,m,{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"}]},{name:"repo",description:"Open package repository page in the browser",args:{name:"package",isOptional:!0,generators:y,debounce:!0,isVariadic:!0},options:[...a,{name:"--no-browser",description:"Display in command line instead of browser",exclusiveOn:["--browser"]},{name:"--browser",description:"The browser that is called by the npm repo command to open websites",args:{name:"browser"},exclusiveOn:["--no-browser"]}]},{name:"restart",description:"Restart a package",options:[m,v,{name:"--",args:{name:"arg",description:"Arguments to be passed to the restart script"}}]},{name:"root",description:"Display npm root",options:[{name:["-g","--global"],description:"Print the effective global node_modules folder to standard out"}]},{name:"sbom",description:"Generate a Software Bill of Materials (SBOM)",options:[f,{name:"--package-lock-only",description:"Current operation will only use the package-lock.json, ignoring node_modules"},{name:"--sbom-format",description:"SBOM format to use when generating SBOMs",args:{name:"format",suggestions:["cyclonedx","spdx"]}},...a]},{name:["search","s","se","find"],description:"Search for packages",args:{name:"search terms",isVariadic:!0},options:[j,n,{name:"--color",description:"Show colors",args:{name:"always",suggestions:["always"],description:"Always show colors"},exclusiveOn:["--no-color"]},{name:"--no-color",description:"Do not show colors",exclusiveOn:["--color"]},k,{name:"--no-description",description:"Do not show descriptions"},{name:"--searchopts",description:"Space-separated options that are always passed to search",args:{name:"searchopts"}},{name:"--searchexclude",description:"Space-separated options that limit the results from search",args:{name:"searchexclude"}},e,{name:"--prefer-online",description:"If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data",exclusiveOn:["--prefer-offline","--offline"]},{name:"--prefer-offline",description:"If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server",exclusiveOn:["--prefer-online","--offline"]},{name:"--offline",description:"Force offline mode: no network requests will be done during install",exclusiveOn:["--prefer-online","--prefer-offline"]}]},{name:"set",description:"Sets the config key to the value"},{name:"set-script",description:"Set tasks in the scripts section of package.json",deprecated:!0,args:[{name:"script",description:"Name of the task to be added to the scripts section of package.json"},{name:"command",description:"Command to run when script is called"}],options:a},{name:"shrinkwrap",description:"Lock down dependency versions for publication",deprecated:!0},{name:"stage",description:"Stage a package for publishing, deferring 2FA to a later approval",subcommands:[{name:"publish",description:"Stage a package for publishing",args:{name:"package-spec",isOptional:!0,template:["folders"]},options:[{name:"--tag",description:"Registers the staged package with the given tag",args:{name:"tag"}}]},{name:"list",description:"List all staged package versions",args:{name:"package-spec",isOptional:!0}},{name:"view",description:"View details of a specific staged package",args:{name:"stage-id"}},{name:"approve",description:"Approve a staged package for publishing",args:{name:"stage-id"}},{name:"reject",description:"Reject a staged package",args:{name:"stage-id"}},{name:"download",description:"Download the tarball of a staged package for inspection",args:{name:"stage-id"}}]},{name:"star",description:"Mark your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to mark as favorite"},options:[e,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:"stars",description:"View packages marked as favorites",deprecated:!0,args:{name:"user",isOptional:!0,description:"View packages marked as favorites by <user>"},options:[e]},{name:"start",description:"Start a package",options:[m,v,{name:"--",args:{name:"arg",description:"Arguments to be passed to the start script"}}]},{name:"stop",description:"Stop a package",options:[m,v,{name:"--",args:{name:"arg",description:"Arguments to be passed to the stop script"}}]},{name:"team",description:"Manage organization teams and team memberships",subcommands:[{name:"create",args:{name:"scope:team"},options:[e,o]},{name:"destroy",args:{name:"scope:team"},options:[e,o]},{name:"add",args:[{name:"scope:team"},{name:"user"}],options:[e,o]},{name:"rm",args:[{name:"scope:team"},{name:"user"}],options:[e,o]},{name:"ls",args:{name:"scope|scope:team"},options:[e,n,k]}]},{name:["test","tst","t"],description:"Test a package",options:[m,v]},{name:"token",description:"Manage your authentication tokens",subcommands:[{name:"list",description:"Shows a table of all active authentication tokens",options:[n,k]},{name:"create",description:"Create a new authentication token",options:[{name:"--read-only",description:"This is used to mark a token as unable to publish when configuring limited access tokens with the npm token create command"},{name:"--cidr",description:"This is a list of CIDR address to be used when configuring limited access tokens with the npm token create command",isRepeatable:!0,args:{name:"cidr"}}]},{name:"revoke",description:"Immediately removes an authentication token from the registry. You will no longer be able to use it",args:{name:"idtoken"}}],options:[e,o]},{name:"trust",description:"Create a trusted relationship between a package and an OIDC provider",subcommands:[{name:"github",description:"Create a trusted relationship between a package and GitHub Actions",args:{name:"package",isOptional:!0},options:[...F,{name:"--file",description:"Name of the workflow file within the repository's .github folder (must end in yaml or yml)",isRequired:!0,args:{name:"file"}},{name:["--repository","--repo"],description:"Name of the repository in the format owner/repo",args:{name:"repository"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"gitlab",description:"Create a trusted relationship between a package and GitLab CI/CD",args:{name:"package",isOptional:!0},options:[...F,{name:"--file",description:"Name of the pipeline file (e.g. .gitlab-ci.yml)",isRequired:!0,args:{name:"file"}},{name:"--project",description:"Name of the project in the format group/project or group/subgroup/project",args:{name:"project"}},{name:["--environment","--env"],description:"CI environment name",args:{name:"environment"}}]},{name:"circleci",description:"Create a trusted relationship between a package and CircleCI",args:{name:"package",isOptional:!0},options:[...F,{name:"--org-id",description:"CircleCI organization UUID",isRequired:!0,args:{name:"org-id"}},{name:"--project-id",description:"CircleCI project UUID",isRequired:!0,args:{name:"project-id"}},{name:"--pipeline-definition-id",description:"CircleCI pipeline definition UUID",isRequired:!0,args:{name:"pipeline-definition-id"}},{name:"--vcs-origin",description:"CircleCI repository origin in the format provider/owner/repo",isRequired:!0,args:{name:"vcs-origin"}},{name:"--context-id",description:"CircleCI context UUID to match",isRepeatable:!0,args:{name:"context-id"}}]},{name:"list",description:"List trusted relationships for a package",args:{name:"package",isOptional:!0}},{name:"revoke",description:"Revoke a trusted relationship for a package",args:{name:"package",isOptional:!0},options:[{name:"--id",description:"ID of the trusted relationship to revoke",args:{name:"trust-id"}}]}]},{name:"undeprecate",description:"Undeprecate a version of a package",args:{name:"package-spec"},options:[e,o,u]},T("uninstall"),T(["r","rm"]),T("un"),T("remove"),T("unlink"),{name:"unpublish",description:"Remove a package from the registry",args:{name:"[<@scope>/]<pkg>[@<version>]"},options:[u,{name:["-f","--force"],description:"Allow unpublishing all versions of a published package. Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input",isDangerous:!0},...a]},{name:"unstar",description:"Remove an item from your favorite packages",deprecated:!0,args:{name:"pkg",description:"Package to unmark as favorite"},options:[e,o,{name:"--no-unicode",description:"Do not use unicode characters in the tree output"}]},{name:["update","upgrade","up","u"],description:"Update a package",options:[{name:"-g",description:"Update global package"},D,{name:"--global-style",description:"Causes npm to install the package into your local node_modules folder with the same layout it uses with the global node_modules folder",deprecated:!0},{name:"--legacy-bundling",description:"Causes npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package",deprecated:!0},{name:"--strict-peer-deps",description:"If set to true, and --legacy-peer-deps is not set, then any conflicting peerDependencies will be treated as an install failure"},{name:"--no-package-lock",description:"Ignores package-lock.json files when installing"},f,m,R,V,{name:"--no-audit",description:"Do not submit audit reports alongside the current npm command"},{name:"--no-bin-links",description:"Tells npm to not create symlinks (or .cmd shims on Windows) for package executables"},{name:"--no-fund",description:"Hides the message at the end of each npm install acknowledging the number of dependencies looking for funding"},{name:"--save",description:"Update the semver values of direct dependencies in your project package.json"},u,...a]},{name:"version",description:"Bump a package version",options:[...a,n,{name:"--allow-same-version",description:"Prevents throwing an error when npm version is used to set the new version to the same value as the current version"},{name:"--no-commit-hooks",description:"Do not run git commit hooks when using the npm version command"},{name:"--no-git-tag-version",description:"Do not tag the commit when using the npm version command"},{name:"--preid",description:'The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8',args:{name:"prerelease-id"}},{name:"--sign-git-tag",description:"If set to true, then the npm version command will tag the version using -s to add a signature"}]},{name:["view","v","info","show"],description:"View registry info",options:[...a,n]},{name:"whoami",description:"Display npm username",options:[e]}]};var c=t=>({name:["-p","--path"],description:t,args:{name:"path",template:"folders"}}),b=t=>({name:["-P","--prototype"],description:t,args:{name:"prototype"}}),G={...y,custom:P(["magnolia-light-module"])},B={name:"mgnl",description:"Magnolia CLI is a command line interface (CLI) tool to set up and facilitate light development with Magnolia",icon:"https://avatars.githubusercontent.com/u/25686615?s=200&v=4",subcommands:[{name:"add-availability",description:"This command makes a component available to a page",args:[{name:"<[module-id:]path-to-component>",description:"The component you want to make available"},{name:"<path-to-page[@area]>",description:"The page you want to make the component available to"}],options:[c("The path to the light module that contains the page template"),{name:"-g",description:"Add this parameter to autogenerate the component instead of providing plain availability"}]},{name:"create-app",description:"This command creates a content type and an app",args:{name:"name",description:"The name of the new app. The name cannot contain spaces"},options:[c("The path to the light module where you want to create the app"),b("The name of the prototype variant to create the app")]},{name:"create-block",description:"This command creates a block",args:{name:"blockName",description:"The name of the new block definition. The block name cannot contain spaces"},options:[c("The path to the light module to add the new block to"),b("The name of the prototype variant to create the block")]},{name:"create-component",description:"This command creates a new component template",args:{name:"name",description:"The name of the new component template. The name cannot contain spaces"},options:[c("The path to the light module you want to add the component template to"),{name:["-a","--available"],description:"The page you want to make the component available to",args:{name:"<path-to-page[@area]>"}},{name:["-g","--autogenerate"],description:"Add this parameter to autogenerate the component instead of providing plain availability",args:{name:"<path-to-page[@area]>"}},b("The name of the prototype variant to create the component")]},{name:"create-content-type",description:"This command creates a content type",args:{name:"name",description:"The name of the new content type. The name cannot contain spaces"},options:[{name:"-a",description:"Creates also a new app that references the content type. With the -a option, the command is functionally equivalent to the create-app command"},c("The path to the light module where you want to create the content type"),b("The name of the prototype variant to create the content type")]},{name:"create-light-module",description:"This command creates a new light module in the form of a set of empty light module folders",args:{name:"moduleName",description:"The name of the new light module. Avoid spaces and special characters since this name is used as folder name"},options:[c("The path of the parent directory for the new light module"),b("The name of the prototype variant to create the light module")]},{name:"create-page",description:"This command creates a new page template",args:{name:"templateName",description:"The name of the new page template. The template name cannot contain spaces"},options:[c("The path to the light module to add the new template to"),b("The name of the prototype variant to create the page")]},{name:"create-virtual-uri",description:"The command creates a virtual URI mapping configuration file (a YAML definition file) in the light module",args:{name:"virtualUriName",description:"The name of the new URI configuration"},options:[c("The path to the light module"),{name:["-f","--formUri"],description:"The pattern to be matched in the requested URI. Enclose the <uri> value in quotes",args:{name:"uri"}},{name:["-t","--toUri"],description:"A concrete URI that the request is mapped to. Enclose the <prefix:uri> value in quotes",args:{name:"<prefix:uri>"}},b("The name of the prototype variant to create the mapping")]},{name:"customize-local-config",description:"Run this command to create a local configuration",options:[c("The path into which the mgnl-cli-prototypes folder and mgnl-cli.json file are installed")]},{name:"install",description:"Downloads and installs one or more light modules from npm to the light module directory",args:{name:"light-module-name",description:"At least one name of a light module to be downloaded from npm. If you are installing more than one module from the repository, separate the module names with a space",isVariadic:!0,debounce:!0,generators:G},options:[c("The path to the light-modules folder")]},{name:"jumpstart",description:"This command downloads, unpacks and pre-configures a Magnolia Tomcat server together with a specific webapp",options:[c("The path to the light modules root folder which is observed for changes"),{name:["-m","--magnolia-version"],description:"Use to choose a specific version of the Magnolia webapp. If not provided, the latest stable version of the specified webapp is downloaded",args:{name:"version"}},{name:["-i","--install-sample-module"],description:"If provided, a sample light module under the light modules root folder with the given name is created",args:{name:"name"}},{name:["-s","--snapshot"],description:"Downloads the latest snapshot development version of the specified webapp"},{name:["-w","--webapp"],description:"Use to directly specify which Magnolia webapp you want to install",args:{name:"webapp",suggestions:[{name:"magnolia-empty-webapp"},{name:"magnolia-community-webapp"},{name:"magnolia-community-demo-webapp"},{name:"magnolia-dx-core-webapp"},{name:"magnolia-dx-core-demo-webapp"}]}}]},{name:"tab-completion",description:"Run the command to install or uninstall autocompletion for Magnolia CLI commands",args:{name:"command",suggestions:[{name:"install"},{name:"uninstall"}]}},{name:"search",description:"Searches for Magnolia-related packages available from npm",args:{name:"query",generators:G,description:"The search query sent to the npm's API. The query can contain multiple terms separated with commas and no spaces"}},{name:"start",description:"This command starts up Magnolia and displays the main log file",options:[c("The path to the apache-tomcat folder"),{name:"-d",description:"Does NOT ignore the open files limit check. The files limit check is ignored by default"}]}],options:[{name:["--help","-h"],description:"Show help for mgnl",isPersistent:!0}]},H=B;export{H as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),[".DS_Store"]),W=[];for(let
|
|
1
|
+
var k=Object.create;var q=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ie=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ee(t))!ne.call(e,r)&&r!==n&&q(e,r,{get:()=>t[r],enumerable:!(i=Y(t,r))||i.enumerable});return e};var re=(e,t,n)=>(n=e!=null?k(te(e)):{},ie(t||!e||!e.__esModule?q(n,"default",{value:e,enumerable:!0}):n,e));var R=I(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.shellExpand=T.ensureTrailingSlash=void 0;var oe=e=>e.endsWith("/")?e:`${e}/`;T.ensureTrailingSlash=oe;var se=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,ae=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,r=>{var o;let a=r.slice(1);return(o=t[a])!==null&&o!==void 0?o:r}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(r,o,a)=>{var c,p;return(p=(c=t[o])!==null&&c!==void 0?c:a)!==null&&p!==void 0?p:r}),le=(e,t)=>{var n;let{environmentVariables:i}=t;return ae(se(e,(n=i?.HOME)!==null&&n!==void 0?n:"~"),i)};T.shellExpand=le});var z=I(O=>{"use strict";var ce=O&&O.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(u){a(u)}}function p(s){try{l(i.throw(s))}catch(u){a(u)}}function l(s){s.done?o(s.value):r(s.value).then(c,p)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(O,"__esModule",{value:!0});O.filepaths=O.folders=O.getCurrentInsertedDirectory=void 0;O.sortFilesAlphabetically=$;var M=R();function $(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 pe=(e,t,n)=>{if(e===null)return"/";let i=(0,M.shellExpand)(t,n),r=i.slice(0,i.lastIndexOf("/")+1);return r===""?(0,M.ensureTrailingSlash)(e):r.startsWith("/")?r:`${(0,M.ensureTrailingSlash)(e)}${r}`};O.getCurrentInsertedDirectory=pe;function C(e={}){let{extensions:t=[],equals:n=[],matches:i,filterFolders:r=!1,editFileSuggestions:o,editFolderSuggestions:a,rootDirectory:c,showFolders:p="always"}=e,l=new Set(t),s=new Set(n),u=()=>t.length>0||n.length>0||i,g=(f=[])=>u()?f.filter(({name:m="",type:b})=>{if(!r&&b==="folder"||s.has(m)||i&&m.match(i))return!0;let[,...d]=m.split(".");if(d.length>=1){let v=d.length-1,_=d[v];do{if(l.has(_))return!0;v-=1,_=[d[v],_].join(".")}while(v>=0)}return!1}):f,w=(f=[])=>!o&&!a?f:f.map(m=>Object.assign(Object.assign({},m),(m.type==="file"?o:a)||{}));return{trigger:(f,m)=>{let b=f.lastIndexOf("/"),d=m.lastIndexOf("/");return b!==d?!0:b===-1&&d===-1?!1:f.slice(0,b)!==m.slice(0,d)},getQueryTerm:f=>f.slice(f.lastIndexOf("/")+1),custom:(f,m,b)=>ce(this,void 0,void 0,function*(){var d;let{isDangerous:v,currentWorkingDirectory:_,searchTerm:h}=b,S=(d=(0,O.getCurrentInsertedDirectory)(c??_,h,b))!==null&&d!==void 0?d:"/";try{let P=yield m({command:"ls",args:["-1ApL"],cwd:S}),Z=$(P.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),W=[];for(let A of Z)if(A){let V=A.endsWith("/")?"folders":"filepaths";(V==="filepaths"&&p!=="only"||V==="folders"&&p!=="never")&&W.push({type:V==="filepaths"?"file":"folder",name:A,insertValue:A,isDangerous:v,context:{templateType:V}})}return w(g(W))}catch{return[]}})}}O.folders=Object.assign(()=>C({showFolders:"only"}),Object.freeze(C({showFolders:"only"})));O.filepaths=Object.assign(C,Object.freeze(C()))});var Q=I(x=>{"use strict";var D=x&&x.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(u){a(u)}}function p(s){try{l(i.throw(s))}catch(u){a(u)}}function l(s){s.done?o(s.value):r(s.value).then(c,p)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(x,"__esModule",{value:!0});x.valueList=ue;x.keyValue=de;x.keyValueList=fe;var G=new Map;function L(e,t){return e.length===0?t:t.map(n=>n.insertValue?n:Object.assign(Object.assign({},n),{insertValue:n.name+e}))}function K(e,t,n){return D(this,void 0,void 0,function*(){if(typeof e=="function"){let i=yield e(...n);return L(t,i)}if(typeof e[0]=="string"){let i=e.map(r=>({name:r}));return L(t,i)}return L(t,e)})}function E(e,t,n,i){return D(this,void 0,void 0,function*(){if(n||Array.isArray(e)){let r=G.get(e);return r===void 0&&(r=yield K(e,t,i),G.set(e,r)),r}return K(e,t,i)})}function J(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function F(e,...t){return Math.max(...t.map(n=>e.lastIndexOf(n)))}function N(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 ue({delimiter:e=",",values:t=[],cache:n=!1,insertDelimiter:i=!1,allowRepeatedValues:r=!1}){return{trigger:(o,a)=>o.lastIndexOf(e)!==a.lastIndexOf(e),getQueryTerm:o=>o.slice(o.lastIndexOf(e)+e.length),custom:(...o)=>D(this,void 0,void 0,function*(){var a;let c=yield E(t,i?e:"",n,o);if(r)return c;let[p]=o,l=(a=p[p.length-1])===null||a===void 0?void 0:a.split(e);return N(l,c)})}}function de({separator:e="=",keys:t=[],values:n=[],cache:i=!1,insertSeparator:r=!0}){return{trigger:(o,a)=>o.indexOf(e)!==a.indexOf(e),getQueryTerm:o=>o.slice(o.indexOf(e)+1),custom:(...o)=>D(this,void 0,void 0,function*(){let[a]=o,p=!a[a.length-1].includes(e),l=p?t:n,s=J(p,i);return E(l,p&&r?e:"",s,o)})}}function fe({separator:e="=",delimiter:t=",",keys:n=[],values:i=[],cache:r=!1,insertSeparator:o=!0,insertDelimiter:a=!1,allowRepeatedKeys:c=!1,allowRepeatedValues:p=!0}){return{trigger:(l,s)=>{let u=F(l,e,t),g=F(s,e,t);return u!==g},getQueryTerm:l=>{let s=F(l,e,t);return l.slice(s+1)},custom:(...l)=>D(this,void 0,void 0,function*(){let[s]=l,u=s[s.length-1],g=F(u,e,t),w=g===-1||u.slice(g,g+e.length)!==e,f=w?n:i,m=J(w,r),d=yield E(f,w?o?e:"":a?t:"",m,l);if(w){if(c)return d;let _=u.split(t).map(h=>h.slice(0,h.indexOf(e)));return N(_,d)}if(p)return d;let v=u.split(t).map(_=>_.slice(_.indexOf(e)+e.length));return N(v,d)})}}});var H=I(j=>{"use strict";var he=j&&j.__awaiter||function(e,t,n,i){function r(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function c(s){try{l(i.next(s))}catch(u){a(u)}}function p(s){try{l(i.throw(s))}catch(u){a(u)}}function l(s){s.done?o(s.value):r(s.value).then(c,p)}l((i=i.apply(e,t||[])).next())})};Object.defineProperty(j,"__esModule",{value:!0});j.ai=Oe;var me=4097,ge=4,ye=.8,ve=me*ge*ye;function Oe({name:e,prompt:t,message:n,postProcess:i,temperature:r,splitOn:o}){return{scriptTimeout:15e3,custom:(a,c,p)=>he(this,void 0,void 0,function*(){var l,s;let u=yield c({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(u.stdout))return[];let g=typeof t=="function"?yield t({tokens:a,executeCommand:c,generatorContext:p}):t,w=typeof n=="function"?yield n({tokens:a,executeCommand:c,generatorContext:p}):n;if(w===null||w.length===0)return console.warn("No message provided to AI generator"),[];let f=ve-((l=g?.length)!==null&&l!==void 0?l:0),m={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...g?[{role:"system",content:g}]:[],{role:"user",content:w.slice(0,f)}],temperature:r},b=JSON.stringify(m),d=yield c({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",b]}),v=JSON.parse(d.stdout);return(s=v?.choices.map(h=>{var S;return(S=h?.message)===null||S===void 0?void 0:S.content}).filter(h=>typeof h=="string").flatMap(h=>o?h.split(o).filter(S=>S.trim().length>0):[h]).map(h=>{if(i)return i(h);let S=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:S,insertValue:`'${S}'`,description:"Generated by Fig AI"}}))!==null&&s!==void 0?s:[]})}}});var B=I(y=>{"use strict";var be=y&&y.__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]}),_e=y&&y.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&be(t,e,n)};Object.defineProperty(y,"__esModule",{value:!0});y.ai=y.folders=y.filepaths=void 0;var U=z();Object.defineProperty(y,"filepaths",{enumerable:!0,get:function(){return U.filepaths}});Object.defineProperty(y,"folders",{enumerable:!0,get:function(){return U.folders}});_e(Q(),y);var we=H();Object.defineProperty(y,"ai",{enumerable:!0,get:function(){return we.ai}})});var X=re(B(),1),Se={name:"@withfig/autocomplete-tools",description:"Dev tools for fig's autocomplete",subcommands:[{name:"init",description:"Initialize fig custom spec boilerplate in current directory",options:[{name:["-h","--help"],description:"Display help for command",priority:49}]},{name:"create-spec",description:"Create spec with given name",options:[{name:["-h","--help"],description:"Display help for command",priority:49}],args:{name:"name",isOptional:!0}},{name:"compile",description:"Compile specs in the current directory",options:[{name:["-w","--watch"],description:"Watch files and re-compile on change"},{name:["-h","--help"],description:"Display help for command",priority:49}]},{name:"dev",description:"Watch for changes and compile specs",options:[{name:["-h","--help"],description:"Display help for command",priority:49}]},{name:"merge",description:"Deep merge new spec into old spec",options:[{name:["-n","--new-file"],description:"Create a new spec file instead of updating the old one",args:{name:"path",template:"filepaths"}},{name:["-i","--ignore-props"],description:"The props that should always be overridden",args:{name:"props"},exclusiveOn:["--preset"]},{name:"--ignore-command-props",description:"The command props that should always be overridden",args:{name:"props"},exclusiveOn:["--preset"]},{name:"--ignore-option-props",description:"The option props that should always be overridden",args:{name:"props"},exclusiveOn:["--preset"]},{name:"--ignore-arg-props",description:"The arg props that should always be overridden",args:{name:"props"},exclusiveOn:["--preset"]},{name:["-p","--preset"],description:"Use a preset",args:{name:"name",suggestions:["commander","oclif","cobra","clap","swift-argument-parser","click","argparse","cement"]},priority:76,exclusiveOn:["--ignore-props","--ignore-command-props","--ignore-option-props","--ignore-arg-props"]},{name:["-h","--help"],description:"Display help for command",priority:49}],args:[{name:"oldspec",template:"filepaths"},{name:"newspec",template:"filepaths"}]},{name:"version",subcommands:[{name:"add-diff",description:"Generate version diff from new spec and add into old spec",options:[{name:["-n","--new-path"],description:"The root folder where the updated spec will be saved. Note: this must NOT include the folder spec name",args:{name:"path"}},{name:"--cwd",description:"Resolve the spec name relative to this directory",args:{name:"path",template:"folders"}},{name:"--use-minor-base",description:"Create a new version file per minor version"},{name:["-h","--help"],description:"Display help for command",priority:49}],args:[{name:"specName"},{name:"newSpecFilePath",generators:(0,X.filepaths)({extensions:["ts"]})},{name:"diffVersion"}]},{name:"init-spec",description:"Generate versioned spec in folder specified by path",options:[{name:"--cwd",description:"Generate the spec relative to this directory",args:{name:"path",template:"folders"}},{name:["-h","--help"],description:"Display help for command",priority:49}],args:{name:"name"}},{name:"precompute-specs",description:"[Unimplemented] Precompute versioned specs before publishing the specs repo (unimplemented)",options:[{name:["-h","--help"],description:"Display help for command",priority:49}],args:{name:"files",isVariadic:!0}},{name:"help",description:"Display help for command",priority:49,args:{name:"command",isOptional:!0,template:"help"}}],options:[{name:["-h","--help"],description:"Display help for command",priority:49}]},{name:"help",description:"Display help for command",priority:49,args:{name:"command",isOptional:!0,template:"help"}}],options:[{name:["-V","--version"],description:"Output the version number"},{name:["-h","--help"],description:"Display help for command",priority:49}],icon:"https://fig.io/icons/fig-light.png"},Ve=Se;export{Ve as default};
|
package/build/airflow.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var X=Object.create;var P=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),[".DS_Store"]),G=[];for(let R of Q)if(R){let D=R.endsWith("/")?"folders":"filepaths";(D==="filepaths"&&c!=="only"||D==="folders"&&c!=="never")&&G.push({type:D==="filepaths"?"file":"folder",name:R,insertValue:R,isDangerous:v,context:{templateType:D}})}return _(f(G))}catch{return[]}})}}b.folders=Object.assign(()=>F({showFolders:"only"}),Object.freeze(F({showFolders:"only"})));b.filepaths=Object.assign(F,Object.freeze(F()))});var V=M(k=>{"use strict";var I=k&&k.__awaiter||function(e,t,i,o){function n(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function d(a){try{l(o.next(a))}catch(p){r(p)}}function c(a){try{l(o.throw(a))}catch(p){r(p)}}function l(a){a.done?s(a.value):n(a.value).then(d,c)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(k,"__esModule",{value:!0});k.keyValueList=k.keyValue=k.valueList=void 0;var N=new Map;function j(e,t){return e.length===0?t:t.map(i=>i.insertValue?i:Object.assign(Object.assign({},i),{insertValue:i.name+e}))}function J(e,t,i){return I(this,void 0,void 0,function*(){if(typeof e=="function"){let o=yield e(...i);return j(t,o)}if(typeof e[0]=="string"){let o=e.map(n=>({name:n}));return j(t,o)}return j(t,e)})}function W(e,t,i,o){return I(this,void 0,void 0,function*(){if(i||Array.isArray(e)){let n=N.get(e);return n===void 0&&(n=yield J(e,t,o),N.set(e,n)),n}return J(e,t,o)})}function U(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function L(e,...t){return Math.max(...t.map(i=>e.lastIndexOf(i)))}function H(e,t){let i=new Set(e);return t.filter(o=>{var n;return typeof o.name=="string"?!i.has(o.name):!(!((n=o.name)===null||n===void 0)&&n.some(s=>i.has(s)))})}function pe({delimiter:e=",",values:t=[],cache:i=!1,insertDelimiter:o=!1,allowRepeatedValues:n=!1}){return{trigger:(s,r)=>s.lastIndexOf(e)!==r.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>I(this,void 0,void 0,function*(){var r;let d=yield W(t,o?e:"",i,s);if(n)return d;let[c]=s,l=(r=c[c.length-1])===null||r===void 0?void 0:r.split(e);return H(l,d)})}}k.valueList=pe;function me({separator:e="=",keys:t=[],values:i=[],cache:o=!1,insertSeparator:n=!0}){return{trigger:(s,r)=>s.indexOf(e)!==r.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>I(this,void 0,void 0,function*(){let[r]=s,c=!r[r.length-1].includes(e),l=c?t:i,a=U(c,o);return W(l,c&&n?e:"",a,s)})}}k.keyValue=me;function ue({separator:e="=",delimiter:t=",",keys:i=[],values:o=[],cache:n=!1,insertSeparator:s=!0,insertDelimiter:r=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:c=!0}){return{trigger:(l,a)=>{let p=L(l,e,t),f=L(a,e,t);return p!==f},getQueryTerm:l=>{let a=L(l,e,t);return l.slice(a+1)},custom:(...l)=>I(this,void 0,void 0,function*(){let[a]=l,p=a[a.length-1],f=L(p,e,t),_=f===-1||p.slice(f,f+e.length)!==e,u=_?i:o,g=U(_,n),m=yield W(u,_?s?e:"":r?t:"",g,l);if(_){if(d)return m;let O=p.split(t).map(h=>h.slice(0,h.indexOf(e)));return H(O,m)}if(c)return m;let v=p.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return H(v,m)})}}k.keyValueList=ue});var z=M(S=>{"use strict";var he=S&&S.__awaiter||function(e,t,i,o){function n(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function d(a){try{l(o.next(a))}catch(p){r(p)}}function c(a){try{l(o.throw(a))}catch(p){r(p)}}function l(a){a.done?s(a.value):n(a.value).then(d,c)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(S,"__esModule",{value:!0});S.ai=void 0;var ge=4097,fe=4,be=.8,we=ge*fe*be;function ve({name:e,prompt:t,message:i,postProcess:o,temperature:n,splitOn:s}){return{scriptTimeout:15e3,custom:(r,d,c)=>he(this,void 0,void 0,function*(){var l,a;let p=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(p.stdout))return[];let f=typeof t=="function"?yield t({tokens:r,executeCommand:d,generatorContext:c}):t,_=typeof i=="function"?yield i({tokens:r,executeCommand:d,generatorContext:c}):i;if(_===null||_.length===0)return console.warn("No message provided to AI generator"),[];let u=we-((l=f?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...f?[{role:"system",content:f}]:[],{role:"user",content:_.slice(0,u)}],temperature:n},y=JSON.stringify(g),m=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",y]}),v=JSON.parse(m.stdout);return(a=v?.choices.map(h=>{var A;return(A=h?.message)===null||A===void 0?void 0:A.content}).filter(h=>typeof h=="string").flatMap(h=>s?h.split(s).filter(A=>A.trim().length>0):[h]).map(h=>{if(o)return o(h);let A=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:A,insertValue:`'${A}'`,description:"Generated by Fig AI"}}))!==null&&a!==void 0?a:[]})}}S.ai=ve});var K=M(w=>{"use strict";var ye=w&&w.__createBinding||(Object.create?function(e,t,i,o){o===void 0&&(o=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,o,n)}:function(e,t,i,o){o===void 0&&(o=i),e[o]=t[i]}),Oe=w&&w.__exportStar||function(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ye(t,e,i)};Object.defineProperty(w,"__esModule",{value:!0});w.ai=w.folders=w.filepaths=void 0;var B=Y();Object.defineProperty(w,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(w,"folders",{enumerable:!0,get:function(){return B.folders}});Oe(V(),w);var _e=z();Object.defineProperty(w,"ai",{enumerable:!0,get:function(){return _e.ai}})});var $=ne(K(),1),Ae={name:"airflow",description:"Subcommand",subcommands:[{name:"celery",description:"Celery components",subcommands:[{name:"flower",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-A","--basic-auth"],description:"Securing Flower with Basic Authentication. Accepts user:password pairs separated by a comma. Example: flower_basic_auth = user1:password1,user2:password2",args:{name:"basic_auth",description:"Securing Flower with Basic Authentication. Accepts user:password pairs separated by a comma. Example: flower_basic_auth = user1:password1,user2:password2",generators:(0,$.keyValueList)({separator:":",keys:["user"],values:["password"],cache:!0})}},{name:["-a","--broker-api"],description:"Broker API",args:{name:"broker_api",description:"Broker API"}},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-c","--flower-conf"],description:"Configuration file for flower",args:{name:"flower_conf",description:"Configuration file for flower"}},{name:["-H","--hostname"],description:"Set the hostname on which to run the server",args:{name:"hostname",description:"Set the hostname on which to run the server"}},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:["-p","--port"],description:"The port on which to run the server",args:{name:"port",description:"The port on which to run the server"}},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-u","--url-prefix"],description:"URL prefix for Flower",args:{name:"url_prefix",description:"URL prefix for Flower"}}],description:"Start a Celery Flower"},{name:"stop",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}}],description:"Stop the Celery worker gracefully"},{name:"worker",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-a","--autoscale"],description:"Minimum and Maximum number of worker to autoscale",args:{name:"autoscale",description:"Minimum and Maximum number of worker to autoscale"}},{name:["-H","--celery-hostname"],description:"Set the hostname of celery worker if you have multiple workers on a single machine",args:{name:"celery_hostname",description:"Set the hostname of celery worker if you have multiple workers on a single machine"}},{name:["-c","--concurrency"],description:"The number of worker processes",args:{name:"concurrency",description:"The number of worker processes"}},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:["-q","--queues"],description:"Comma delimited list of queues to serve",args:{name:"queues",description:"Comma delimited list of queues to serve"}},{name:["-s","--skip-serve-logs"],description:"Don't start the serve logs process along with the workers"},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-u","--umask"],description:"Set the umask of celery worker in daemon mode",args:{name:"umask",description:"Set the umask of celery worker in daemon mode"}},{name:"--without-gossip",description:"Don't subscribe to other workers events"},{name:"--without-mingle",description:"Don't synchronize with other workers at start-up"}],description:"Start a Celery worker node"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"cheat-sheet",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"Display cheat sheet"},{name:"config",description:"View configuration",subcommands:[{name:"get-value",options:[{name:["-h","--help"],description:"Show this help message and exit"}],args:[{name:"section",description:"The section name"},{name:"option",description:"The option name"}],description:"Print the value of the configuration"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}}],description:"List options for the configuration"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"connections",description:"Manage connections",subcommands:[{name:"add",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--conn-description",description:"Connection description, optional when adding a connection",args:{name:"conn_description",description:"Connection description, optional when adding a connection"}},{name:"--conn-extra",description:"Connection `Extra` field, optional when adding a connection",args:{name:"conn_extra",description:"Connection `Extra` field, optional when adding a connection"}},{name:"--conn-host",description:"Connection host, optional when adding a connection",args:{name:"conn_host",description:"Connection host, optional when adding a connection"}},{name:"--conn-json",description:"Connection JSON, required to add a connection using JSON representation",args:{name:"conn_json",description:"Connection JSON, required to add a connection using JSON representation"}},{name:"--conn-login",description:"Connection login, optional when adding a connection",args:{name:"conn_login",description:"Connection login, optional when adding a connection"}},{name:"--conn-password",description:"Connection password, optional when adding a connection",args:{name:"conn_password",description:"Connection password, optional when adding a connection"}},{name:"--conn-port",description:"Connection port, optional when adding a connection",args:{name:"conn_port",description:"Connection port, optional when adding a connection"}},{name:"--conn-schema",description:"Connection schema, optional when adding a connection",args:{name:"conn_schema",description:"Connection schema, optional when adding a connection"}},{name:"--conn-type",description:"Connection type, required to add a connection without conn_uri",args:{name:"conn_type",description:"Connection type, required to add a connection without conn_uri"}},{name:"--conn-uri",description:"Connection URI, required to add a connection without conn_type",args:{name:"conn_uri",description:"Connection URI, required to add a connection without conn_type"}}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Add a connection"},{name:"delete",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Delete a connection"},{name:"export",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--file-format",description:"File format for the export",args:{name:"file_format",description:"File format for the export",suggestions:["json","yaml","env"]}},{name:"--format",description:"Deprecated -- use `--file-format` instead. File format to use for the export",args:{name:"format",description:"Deprecated -- use `--file-format` instead. File format to use for the export",suggestions:["json","yaml","env"]}},{name:"--serialization-format",description:"When exporting as `.env` format, defines how connections should be serialized. Default is `uri`",args:{name:"serialization_format",description:"When exporting as `.env` format, defines how connections should be serialized. Default is `uri`",suggestions:["json","uri"]}}],args:{name:"file",description:"Output file path for exporting the connections"},description:"Export all connections"},{name:"get",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Get a connection"},{name:"import",options:[{name:["-h","--help"],description:"Show this help message and exit"}],args:{name:"file",description:"Import connections from a file"},description:"Import connections from a file"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--conn-id",description:"If passed, only items with the specified connection ID will be displayed",args:{name:"conn_id",description:"If passed, only items with the specified connection ID will be displayed"}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List connections"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"dag-processor",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-p","--do-pickle"],description:"Attempt to pickle the DAG object to send over to the workers, instead of letting workers run their version of the code"},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:["-n","--num-runs"],description:"Set the number of runs to execute before exiting",args:{name:"num_runs",description:"Set the number of runs to execute before exiting"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Start a standalone Dag Processor instance"},{name:"dags",description:"Manage DAGs",subcommands:[{name:"backfill",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-c","--conf"],description:"JSON string that gets pickled into the DagRun's conf attribute",args:{name:"conf",description:"JSON string that gets pickled into the DagRun's conf attribute"}},{name:"--continue-on-failures",description:"If set, the backfill will keep going even if some of the tasks failed"},{name:"--delay-on-limit",description:"Amount of time in seconds to wait when the limit on maximum active dag runs (max_active_runs) has been reached before trying to execute a dag run again",args:{name:"delay_on_limit",description:"Amount of time in seconds to wait when the limit on maximum active dag runs (max_active_runs) has been reached before trying to execute a dag run again"}},{name:["-x","--donot-pickle"],description:"Do not attempt to pickle the DAG object to send over to the workers, just tell the workers to run their version of the code"},{name:["-n","--dry-run"],description:"Perform a dry run for each task. Only renders Template Fields for each task, nothing else"},{name:["-e","--end-date"],description:"Override end_date YYYY-MM-DD",args:{name:"end_date",description:"Override end_date YYYY-MM-DD"}},{name:["-i","--ignore-dependencies"],description:"Skip upstream tasks, run only the tasks matching the regexp. Only works in conjunction with task_regex"},{name:["-I","--ignore-first-depends-on-past"],description:"Ignores depends_on_past dependencies for the first set of tasks only (subsequent executions in the backfill DO respect depends_on_past)"},{name:["-l","--local"],description:"Run the task using the LocalExecutor"},{name:["-m","--mark-success"],description:"Mark jobs as succeeded without running them"},{name:"--pool",description:"Resource pool to use",args:{name:"pool",description:"Resource pool to use"}},{name:"--rerun-failed-tasks",description:"If set, the backfill will auto-rerun all the failed tasks for the backfill date range instead of throwing exceptions"},{name:"--reset-dagruns",description:"If set, the backfill will delete existing backfill-related DAG runs and start anew with fresh, running DAG runs"},{name:["-B","--run-backwards"],description:"If set, the backfill will run tasks from the most recent day first. if there are tasks that depend_on_past this option will throw an exception"},{name:["-s","--start-date"],description:"Override start_date YYYY-MM-DD",args:{name:"start_date",description:"Override start_date YYYY-MM-DD"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-t","--task-regex"],description:"The regex to filter specific task_ids to backfill (optional)",args:{name:"task_regex",description:"The regex to filter specific task_ids to backfill (optional)"}},{name:"--treat-dag-as-regex",description:"If set, dag_id will be treated as regex instead of an exact string"},{name:["-v","--verbose"],description:"Make logging output more verbose"},{name:["-y","--yes"],description:"Do not prompt to confirm. Use with care!"}],args:{name:"dag_id",description:"The id of the dag"},description:"Run subsections of a DAG for a specified date range"},{name:"delete",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-y","--yes"],description:"Do not prompt to confirm. Use with care!"}],args:{name:"dag_id",description:"The id of the dag"},description:"Delete all DB records related to the specified DAG"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List all the DAGs"},{name:"list-import-errors",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List all the DAGs that have import errors"},{name:"list-jobs",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-d","--dag-id"],description:"The id of the dag",args:{name:"dag_id",description:"The id of the dag"}},{name:"--limit",description:"Return a limited number of records",args:{name:"limit",description:"Return a limited number of records"}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:"--state",description:"Only list the dag runs corresponding to the state",args:{name:"state",description:"Only list the dag runs corresponding to the state"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List the jobs"},{name:"list-runs",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-d","--dag-id"],description:"The id of the dag",args:{name:"dag_id",description:"The id of the dag"},isRequired:!0},{name:["-e","--end-date"],description:"Override end_date YYYY-MM-DD",args:{name:"end_date",description:"Override end_date YYYY-MM-DD"}},{name:"--no-backfill",description:"Filter all the backfill dagruns given the dag id"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-s","--start-date"],description:"Override start_date YYYY-MM-DD",args:{name:"start_date",description:"Override start_date YYYY-MM-DD"}},{name:"--state",description:"Only list the dag runs corresponding to the state",args:{name:"state",description:"Only list the dag runs corresponding to the state"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List DAG runs given a DAG id"},{name:"next-execution",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-n","--num-executions"],description:"The number of next execution datetimes to show",args:{name:"num_executions",description:"The number of next execution datetimes to show"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Get the next execution datetimes of a DAG"},{name:"pause",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Pause a DAG"},{name:"report",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"Show DagBag loading report"},{name:"reserialize",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--clear-only",description:"If passed, serialized DAGs will be cleared but not reserialized"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Reserialize all DAGs by parsing the DagBag files"},{name:"show",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--imgcat",description:"Displays graph using the imgcat tool"},{name:["-s","--save"],description:"Saves the result to the indicated file",args:{name:"save",description:"Saves the result to the indicated file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Displays DAG's tasks with their dependencies"},{name:"show-dependencies",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--imgcat",description:"Displays graph using the imgcat tool"},{name:["-s","--save"],description:"Saves the result to the indicated file",args:{name:"save",description:"Saves the result to the indicated file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Displays DAGs with their dependencies"},{name:"state",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:[{name:"dag_id",description:"The id of the dag"},{name:"execution_date",description:"The execution date of the DAG"}],description:"Get the status of a dag run"},{name:"test",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-c","--conf"],description:"JSON string that gets pickled into the DagRun's conf attribute",args:{name:"conf",description:"JSON string that gets pickled into the DagRun's conf attribute"}},{name:"--imgcat-dagrun",description:`After completing the dag run, prints a diagram on the screen for the current DAG Run using the imgcat tool.
|
|
1
|
+
var X=Object.create;var P=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var ee=Object.getOwnPropertyNames;var te=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oe=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ee(t))!ie.call(e,n)&&n!==i&&P(e,n,{get:()=>t[n],enumerable:!(o=Z(t,n))||o.enumerable});return e};var ne=(e,t,i)=>(i=e!=null?X(te(e)):{},oe(t||!e||!e.__esModule?P(i,"default",{value:e,enumerable:!0}):i,e));var q=S(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.shellExpand=x.ensureTrailingSlash=void 0;var se=e=>e.endsWith("/")?e:`${e}/`;x.ensureTrailingSlash=se;var ae=(e,t)=>e.startsWith("~")&&(e.length===1||e.charAt(1)==="/")?e.replace("~",t):e,re=(e,t)=>e.replace(/\$([A-Za-z0-9_]+)/g,n=>{var s;let r=n.slice(1);return(s=t[r])!==null&&s!==void 0?s:n}).replace(/\$\{([A-Za-z0-9_]+)(?::-([^}]+))?\}/g,(n,s,r)=>{var d,c;return(c=(d=t[s])!==null&&d!==void 0?d:r)!==null&&c!==void 0?c:n}),le=(e,t)=>{var i;let{environmentVariables:o}=t;return re(ae(e,(i=o?.HOME)!==null&&i!==void 0?i:"~"),o)};x.shellExpand=le});var Y=S(v=>{"use strict";var de=v&&v.__awaiter||function(e,t,i,o){function n(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function d(a){try{l(o.next(a))}catch(p){r(p)}}function c(a){try{l(o.throw(a))}catch(p){r(p)}}function l(a){a.done?s(a.value):n(a.value).then(d,c)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(v,"__esModule",{value:!0});v.filepaths=v.folders=v.getCurrentInsertedDirectory=void 0;v.sortFilesAlphabetically=C;var E=q();function C(e,t=[]){let i=t.map(n=>n.toLowerCase()),o=e.filter(n=>!i.includes(n.toLowerCase()));return[...o.filter(n=>!n.startsWith(".")).sort((n,s)=>n.localeCompare(s)),...o.filter(n=>n.startsWith(".")).sort((n,s)=>n.localeCompare(s)),"../"]}var ce=(e,t,i)=>{if(e===null)return"/";let o=(0,E.shellExpand)(t,i),n=o.slice(0,o.lastIndexOf("/")+1);return n===""?(0,E.ensureTrailingSlash)(e):n.startsWith("/")?n:`${(0,E.ensureTrailingSlash)(e)}${n}`};v.getCurrentInsertedDirectory=ce;function F(e={}){let{extensions:t=[],equals:i=[],matches:o,filterFolders:n=!1,editFileSuggestions:s,editFolderSuggestions:r,rootDirectory:d,showFolders:c="always"}=e,l=new Set(t),a=new Set(i),p=()=>t.length>0||i.length>0||o,f=(u=[])=>p()?u.filter(({name:g="",type:y})=>{if(!n&&y==="folder"||a.has(g)||o&&g.match(o))return!0;let[,...m]=g.split(".");if(m.length>=1){let w=m.length-1,O=m[w];do{if(l.has(O))return!0;w-=1,O=[m[w],O].join(".")}while(w>=0)}return!1}):u,_=(u=[])=>!s&&!r?u:u.map(g=>Object.assign(Object.assign({},g),(g.type==="file"?s:r)||{}));return{trigger:(u,g)=>{let y=u.lastIndexOf("/"),m=g.lastIndexOf("/");return y!==m?!0:y===-1&&m===-1?!1:u.slice(0,y)!==g.slice(0,m)},getQueryTerm:u=>u.slice(u.lastIndexOf("/")+1),custom:(u,g,y)=>de(this,void 0,void 0,function*(){var m;let{isDangerous:w,currentWorkingDirectory:O,searchTerm:h}=y,A=(m=(0,v.getCurrentInsertedDirectory)(d??O,h,y))!==null&&m!==void 0?m:"/";try{let T=yield g({command:"ls",args:["-1ApL"],cwd:A}),Q=C(T.stdout.split(`
|
|
2
|
+
`),[".DS_Store"]),G=[];for(let R of Q)if(R){let D=R.endsWith("/")?"folders":"filepaths";(D==="filepaths"&&c!=="only"||D==="folders"&&c!=="never")&&G.push({type:D==="filepaths"?"file":"folder",name:R,insertValue:R,isDangerous:w,context:{templateType:D}})}return _(f(G))}catch{return[]}})}}v.folders=Object.assign(()=>F({showFolders:"only"}),Object.freeze(F({showFolders:"only"})));v.filepaths=Object.assign(F,Object.freeze(F()))});var z=S(k=>{"use strict";var M=k&&k.__awaiter||function(e,t,i,o){function n(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function d(a){try{l(o.next(a))}catch(p){r(p)}}function c(a){try{l(o.throw(a))}catch(p){r(p)}}function l(a){a.done?s(a.value):n(a.value).then(d,c)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(k,"__esModule",{value:!0});k.valueList=pe;k.keyValue=me;k.keyValueList=ue;var N=new Map;function j(e,t){return e.length===0?t:t.map(i=>i.insertValue?i:Object.assign(Object.assign({},i),{insertValue:i.name+e}))}function J(e,t,i){return M(this,void 0,void 0,function*(){if(typeof e=="function"){let o=yield e(...i);return j(t,o)}if(typeof e[0]=="string"){let o=e.map(n=>({name:n}));return j(t,o)}return j(t,e)})}function W(e,t,i,o){return M(this,void 0,void 0,function*(){if(i||Array.isArray(e)){let n=N.get(e);return n===void 0&&(n=yield J(e,t,o),N.set(e,n)),n}return J(e,t,o)})}function U(e,t){return typeof t=="string"?e&&t==="keys"||!e&&t==="values":t}function L(e,...t){return Math.max(...t.map(i=>e.lastIndexOf(i)))}function H(e,t){let i=new Set(e);return t.filter(o=>{var n;return typeof o.name=="string"?!i.has(o.name):!(!((n=o.name)===null||n===void 0)&&n.some(s=>i.has(s)))})}function pe({delimiter:e=",",values:t=[],cache:i=!1,insertDelimiter:o=!1,allowRepeatedValues:n=!1}){return{trigger:(s,r)=>s.lastIndexOf(e)!==r.lastIndexOf(e),getQueryTerm:s=>s.slice(s.lastIndexOf(e)+e.length),custom:(...s)=>M(this,void 0,void 0,function*(){var r;let d=yield W(t,o?e:"",i,s);if(n)return d;let[c]=s,l=(r=c[c.length-1])===null||r===void 0?void 0:r.split(e);return H(l,d)})}}function me({separator:e="=",keys:t=[],values:i=[],cache:o=!1,insertSeparator:n=!0}){return{trigger:(s,r)=>s.indexOf(e)!==r.indexOf(e),getQueryTerm:s=>s.slice(s.indexOf(e)+1),custom:(...s)=>M(this,void 0,void 0,function*(){let[r]=s,c=!r[r.length-1].includes(e),l=c?t:i,a=U(c,o);return W(l,c&&n?e:"",a,s)})}}function ue({separator:e="=",delimiter:t=",",keys:i=[],values:o=[],cache:n=!1,insertSeparator:s=!0,insertDelimiter:r=!1,allowRepeatedKeys:d=!1,allowRepeatedValues:c=!0}){return{trigger:(l,a)=>{let p=L(l,e,t),f=L(a,e,t);return p!==f},getQueryTerm:l=>{let a=L(l,e,t);return l.slice(a+1)},custom:(...l)=>M(this,void 0,void 0,function*(){let[a]=l,p=a[a.length-1],f=L(p,e,t),_=f===-1||p.slice(f,f+e.length)!==e,u=_?i:o,g=U(_,n),m=yield W(u,_?s?e:"":r?t:"",g,l);if(_){if(d)return m;let O=p.split(t).map(h=>h.slice(0,h.indexOf(e)));return H(O,m)}if(c)return m;let w=p.split(t).map(O=>O.slice(O.indexOf(e)+e.length));return H(w,m)})}}});var V=S(I=>{"use strict";var he=I&&I.__awaiter||function(e,t,i,o){function n(s){return s instanceof i?s:new i(function(r){r(s)})}return new(i||(i=Promise))(function(s,r){function d(a){try{l(o.next(a))}catch(p){r(p)}}function c(a){try{l(o.throw(a))}catch(p){r(p)}}function l(a){a.done?s(a.value):n(a.value).then(d,c)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(I,"__esModule",{value:!0});I.ai=ve;var ge=4097,fe=4,be=.8,we=ge*fe*be;function ve({name:e,prompt:t,message:i,postProcess:o,temperature:n,splitOn:s}){return{scriptTimeout:15e3,custom:(r,d,c)=>he(this,void 0,void 0,function*(){var l,a;let p=yield d({command:"fig",args:["settings","--format","json","autocomplete.ai.enabled"]});if(!JSON.parse(p.stdout))return[];let f=typeof t=="function"?yield t({tokens:r,executeCommand:d,generatorContext:c}):t,_=typeof i=="function"?yield i({tokens:r,executeCommand:d,generatorContext:c}):i;if(_===null||_.length===0)return console.warn("No message provided to AI generator"),[];let u=we-((l=f?.length)!==null&&l!==void 0?l:0),g={model:"gpt-3.5-turbo",source:"autocomplete",name:e,messages:[...f?[{role:"system",content:f}]:[],{role:"user",content:_.slice(0,u)}],temperature:n},y=JSON.stringify(g),m=yield d({command:"fig",args:["_","request","--route","/ai/chat","--method","POST","--body",y]}),w=JSON.parse(m.stdout);return(a=w?.choices.map(h=>{var A;return(A=h?.message)===null||A===void 0?void 0:A.content}).filter(h=>typeof h=="string").flatMap(h=>s?h.split(s).filter(A=>A.trim().length>0):[h]).map(h=>{if(o)return o(h);let A=h.trim().replace(/\n/g," ");return{icon:"\u{1FA84}",name:A,insertValue:`'${A}'`,description:"Generated by Fig AI"}}))!==null&&a!==void 0?a:[]})}}});var K=S(b=>{"use strict";var ye=b&&b.__createBinding||(Object.create?function(e,t,i,o){o===void 0&&(o=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,o,n)}:function(e,t,i,o){o===void 0&&(o=i),e[o]=t[i]}),Oe=b&&b.__exportStar||function(e,t){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ye(t,e,i)};Object.defineProperty(b,"__esModule",{value:!0});b.ai=b.folders=b.filepaths=void 0;var B=Y();Object.defineProperty(b,"filepaths",{enumerable:!0,get:function(){return B.filepaths}});Object.defineProperty(b,"folders",{enumerable:!0,get:function(){return B.folders}});Oe(z(),b);var _e=V();Object.defineProperty(b,"ai",{enumerable:!0,get:function(){return _e.ai}})});var $=ne(K(),1),Ae={name:"airflow",description:"Subcommand",subcommands:[{name:"celery",description:"Celery components",subcommands:[{name:"flower",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-A","--basic-auth"],description:"Securing Flower with Basic Authentication. Accepts user:password pairs separated by a comma. Example: flower_basic_auth = user1:password1,user2:password2",args:{name:"basic_auth",description:"Securing Flower with Basic Authentication. Accepts user:password pairs separated by a comma. Example: flower_basic_auth = user1:password1,user2:password2",generators:(0,$.keyValueList)({separator:":",keys:["user"],values:["password"],cache:!0})}},{name:["-a","--broker-api"],description:"Broker API",args:{name:"broker_api",description:"Broker API"}},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-c","--flower-conf"],description:"Configuration file for flower",args:{name:"flower_conf",description:"Configuration file for flower"}},{name:["-H","--hostname"],description:"Set the hostname on which to run the server",args:{name:"hostname",description:"Set the hostname on which to run the server"}},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:["-p","--port"],description:"The port on which to run the server",args:{name:"port",description:"The port on which to run the server"}},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-u","--url-prefix"],description:"URL prefix for Flower",args:{name:"url_prefix",description:"URL prefix for Flower"}}],description:"Start a Celery Flower"},{name:"stop",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}}],description:"Stop the Celery worker gracefully"},{name:"worker",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-a","--autoscale"],description:"Minimum and Maximum number of worker to autoscale",args:{name:"autoscale",description:"Minimum and Maximum number of worker to autoscale"}},{name:["-H","--celery-hostname"],description:"Set the hostname of celery worker if you have multiple workers on a single machine",args:{name:"celery_hostname",description:"Set the hostname of celery worker if you have multiple workers on a single machine"}},{name:["-c","--concurrency"],description:"The number of worker processes",args:{name:"concurrency",description:"The number of worker processes"}},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:["-q","--queues"],description:"Comma delimited list of queues to serve",args:{name:"queues",description:"Comma delimited list of queues to serve"}},{name:["-s","--skip-serve-logs"],description:"Don't start the serve logs process along with the workers"},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-u","--umask"],description:"Set the umask of celery worker in daemon mode",args:{name:"umask",description:"Set the umask of celery worker in daemon mode"}},{name:"--without-gossip",description:"Don't subscribe to other workers events"},{name:"--without-mingle",description:"Don't synchronize with other workers at start-up"}],description:"Start a Celery worker node"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"cheat-sheet",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"Display cheat sheet"},{name:"config",description:"View configuration",subcommands:[{name:"get-value",options:[{name:["-h","--help"],description:"Show this help message and exit"}],args:[{name:"section",description:"The section name"},{name:"option",description:"The option name"}],description:"Print the value of the configuration"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}}],description:"List options for the configuration"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"connections",description:"Manage connections",subcommands:[{name:"add",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--conn-description",description:"Connection description, optional when adding a connection",args:{name:"conn_description",description:"Connection description, optional when adding a connection"}},{name:"--conn-extra",description:"Connection `Extra` field, optional when adding a connection",args:{name:"conn_extra",description:"Connection `Extra` field, optional when adding a connection"}},{name:"--conn-host",description:"Connection host, optional when adding a connection",args:{name:"conn_host",description:"Connection host, optional when adding a connection"}},{name:"--conn-json",description:"Connection JSON, required to add a connection using JSON representation",args:{name:"conn_json",description:"Connection JSON, required to add a connection using JSON representation"}},{name:"--conn-login",description:"Connection login, optional when adding a connection",args:{name:"conn_login",description:"Connection login, optional when adding a connection"}},{name:"--conn-password",description:"Connection password, optional when adding a connection",args:{name:"conn_password",description:"Connection password, optional when adding a connection"}},{name:"--conn-port",description:"Connection port, optional when adding a connection",args:{name:"conn_port",description:"Connection port, optional when adding a connection"}},{name:"--conn-schema",description:"Connection schema, optional when adding a connection",args:{name:"conn_schema",description:"Connection schema, optional when adding a connection"}},{name:"--conn-type",description:"Connection type, required to add a connection without conn_uri",args:{name:"conn_type",description:"Connection type, required to add a connection without conn_uri"}},{name:"--conn-uri",description:"Connection URI, required to add a connection without conn_type",args:{name:"conn_uri",description:"Connection URI, required to add a connection without conn_type"}}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Add a connection"},{name:"delete",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Delete a connection"},{name:"export",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--file-format",description:"File format for the export",args:{name:"file_format",description:"File format for the export",suggestions:["json","yaml","env"]}},{name:"--format",description:"Deprecated -- use `--file-format` instead. File format to use for the export",args:{name:"format",description:"Deprecated -- use `--file-format` instead. File format to use for the export",suggestions:["json","yaml","env"]}},{name:"--serialization-format",description:"When exporting as `.env` format, defines how connections should be serialized. Default is `uri`",args:{name:"serialization_format",description:"When exporting as `.env` format, defines how connections should be serialized. Default is `uri`",suggestions:["json","uri"]}}],args:{name:"file",description:"Output file path for exporting the connections"},description:"Export all connections"},{name:"get",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--color",description:"Do emit colored output (default: auto)",args:{name:"color",description:"Do emit colored output (default: auto)",suggestions:["off","auto","on"]}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],args:{name:"conn_id",description:"Connection id, required to get/add/delete a connection"},description:"Get a connection"},{name:"import",options:[{name:["-h","--help"],description:"Show this help message and exit"}],args:{name:"file",description:"Import connections from a file"},description:"Import connections from a file"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--conn-id",description:"If passed, only items with the specified connection ID will be displayed",args:{name:"conn_id",description:"If passed, only items with the specified connection ID will be displayed"}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List connections"}],options:[{name:["-h","--help"],description:"Show this help message and exit"}]},{name:"dag-processor",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-D","--daemon"],description:"Daemonize instead of running in the foreground"},{name:["-p","--do-pickle"],description:"Attempt to pickle the DAG object to send over to the workers, instead of letting workers run their version of the code"},{name:["-l","--log-file"],description:"Location of the log file",args:{name:"log_file",description:"Location of the log file"}},{name:["-n","--num-runs"],description:"Set the number of runs to execute before exiting",args:{name:"num_runs",description:"Set the number of runs to execute before exiting"}},{name:"--pid",description:"PID file location",args:{isOptional:!0,name:"pid",description:"PID file location"}},{name:"--stderr",description:"Redirect stderr to this file",args:{name:"stderr",description:"Redirect stderr to this file"}},{name:"--stdout",description:"Redirect stdout to this file",args:{name:"stdout",description:"Redirect stdout to this file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Start a standalone Dag Processor instance"},{name:"dags",description:"Manage DAGs",subcommands:[{name:"backfill",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-c","--conf"],description:"JSON string that gets pickled into the DagRun's conf attribute",args:{name:"conf",description:"JSON string that gets pickled into the DagRun's conf attribute"}},{name:"--continue-on-failures",description:"If set, the backfill will keep going even if some of the tasks failed"},{name:"--delay-on-limit",description:"Amount of time in seconds to wait when the limit on maximum active dag runs (max_active_runs) has been reached before trying to execute a dag run again",args:{name:"delay_on_limit",description:"Amount of time in seconds to wait when the limit on maximum active dag runs (max_active_runs) has been reached before trying to execute a dag run again"}},{name:["-x","--donot-pickle"],description:"Do not attempt to pickle the DAG object to send over to the workers, just tell the workers to run their version of the code"},{name:["-n","--dry-run"],description:"Perform a dry run for each task. Only renders Template Fields for each task, nothing else"},{name:["-e","--end-date"],description:"Override end_date YYYY-MM-DD",args:{name:"end_date",description:"Override end_date YYYY-MM-DD"}},{name:["-i","--ignore-dependencies"],description:"Skip upstream tasks, run only the tasks matching the regexp. Only works in conjunction with task_regex"},{name:["-I","--ignore-first-depends-on-past"],description:"Ignores depends_on_past dependencies for the first set of tasks only (subsequent executions in the backfill DO respect depends_on_past)"},{name:["-l","--local"],description:"Run the task using the LocalExecutor"},{name:["-m","--mark-success"],description:"Mark jobs as succeeded without running them"},{name:"--pool",description:"Resource pool to use",args:{name:"pool",description:"Resource pool to use"}},{name:"--rerun-failed-tasks",description:"If set, the backfill will auto-rerun all the failed tasks for the backfill date range instead of throwing exceptions"},{name:"--reset-dagruns",description:"If set, the backfill will delete existing backfill-related DAG runs and start anew with fresh, running DAG runs"},{name:["-B","--run-backwards"],description:"If set, the backfill will run tasks from the most recent day first. if there are tasks that depend_on_past this option will throw an exception"},{name:["-s","--start-date"],description:"Override start_date YYYY-MM-DD",args:{name:"start_date",description:"Override start_date YYYY-MM-DD"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-t","--task-regex"],description:"The regex to filter specific task_ids to backfill (optional)",args:{name:"task_regex",description:"The regex to filter specific task_ids to backfill (optional)"}},{name:"--treat-dag-as-regex",description:"If set, dag_id will be treated as regex instead of an exact string"},{name:["-v","--verbose"],description:"Make logging output more verbose"},{name:["-y","--yes"],description:"Do not prompt to confirm. Use with care!"}],args:{name:"dag_id",description:"The id of the dag"},description:"Run subsections of a DAG for a specified date range"},{name:"delete",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-y","--yes"],description:"Do not prompt to confirm. Use with care!"}],args:{name:"dag_id",description:"The id of the dag"},description:"Delete all DB records related to the specified DAG"},{name:"list",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List all the DAGs"},{name:"list-import-errors",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List all the DAGs that have import errors"},{name:"list-jobs",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-d","--dag-id"],description:"The id of the dag",args:{name:"dag_id",description:"The id of the dag"}},{name:"--limit",description:"Return a limited number of records",args:{name:"limit",description:"Return a limited number of records"}},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:"--state",description:"Only list the dag runs corresponding to the state",args:{name:"state",description:"Only list the dag runs corresponding to the state"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List the jobs"},{name:"list-runs",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-d","--dag-id"],description:"The id of the dag",args:{name:"dag_id",description:"The id of the dag"},isRequired:!0},{name:["-e","--end-date"],description:"Override end_date YYYY-MM-DD",args:{name:"end_date",description:"Override end_date YYYY-MM-DD"}},{name:"--no-backfill",description:"Filter all the backfill dagruns given the dag id"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-s","--start-date"],description:"Override start_date YYYY-MM-DD",args:{name:"start_date",description:"Override start_date YYYY-MM-DD"}},{name:"--state",description:"Only list the dag runs corresponding to the state",args:{name:"state",description:"Only list the dag runs corresponding to the state"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"List DAG runs given a DAG id"},{name:"next-execution",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-n","--num-executions"],description:"The number of next execution datetimes to show",args:{name:"num_executions",description:"The number of next execution datetimes to show"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Get the next execution datetimes of a DAG"},{name:"pause",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Pause a DAG"},{name:"report",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-o","--output"],description:"Output format. Allowed values: json, yaml, plain, table (default: table)",args:{name:"(table, json, yaml, plain)",description:"Output format. Allowed values: json, yaml, plain, table (default: table)",suggestions:["table","json","yaml","plain"]}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}},{name:["-v","--verbose"],description:"Make logging output more verbose"}],description:"Show DagBag loading report"},{name:"reserialize",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--clear-only",description:"If passed, serialized DAGs will be cleared but not reserialized"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Reserialize all DAGs by parsing the DagBag files"},{name:"show",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--imgcat",description:"Displays graph using the imgcat tool"},{name:["-s","--save"],description:"Saves the result to the indicated file",args:{name:"save",description:"Saves the result to the indicated file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:{name:"dag_id",description:"The id of the dag"},description:"Displays DAG's tasks with their dependencies"},{name:"show-dependencies",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:"--imgcat",description:"Displays graph using the imgcat tool"},{name:["-s","--save"],description:"Saves the result to the indicated file",args:{name:"save",description:"Saves the result to the indicated file"}},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],description:"Displays DAGs with their dependencies"},{name:"state",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-S","--subdir"],description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'",args:{name:"subdir",description:"File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'"}}],args:[{name:"dag_id",description:"The id of the dag"},{name:"execution_date",description:"The execution date of the DAG"}],description:"Get the status of a dag run"},{name:"test",options:[{name:["-h","--help"],description:"Show this help message and exit"},{name:["-c","--conf"],description:"JSON string that gets pickled into the DagRun's conf attribute",args:{name:"conf",description:"JSON string that gets pickled into the DagRun's conf attribute"}},{name:"--imgcat-dagrun",description:`After completing the dag run, prints a diagram on the screen for the current DAG Run using the imgcat tool.
|
|
3
3
|
`},{name:"--save-dagrun",description:`After completing the backfill, saves the diagram for current DAG Run to the indicated file.
|
|
4
4
|
|
|
5
5
|
`,args:{name:"save_dagrun",description:`After completing the backfill, saves the diagram for current DAG Run to the indicated file.
|