1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
Christopher Pecoraro
95f703c12e
Merge cf4093dbdc into 367e9381df 2024-09-23 19:03:45 +02:00
Carlo Sala
367e9381df
chore(git): fix typo 2024-09-23 17:32:44 +02:00
dependabot[bot]
f11cc8fea1
chore(deps): bump idna in /.github/workflows/dependencies (#12688)
Bumps [idna](https://github.com/kjd/idna) from 3.9 to 3.10.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.9...v3.10)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-22 16:20:33 +02:00
Christopher Pecoraro
cf4093dbdc Add Sanity autocompletion. 2020-05-13 01:22:30 -04:00
4 changed files with 51 additions and 2 deletions

View file

@ -1,6 +1,6 @@
certifi==2024.8.30
charset-normalizer==3.3.2
idna==3.9
idna==3.10
PyYAML==6.0.2
requests==2.32.3
semver==3.0.2

View file

@ -163,7 +163,7 @@ function git_current_branch() {
}
# Outputs the name of the previously checked out branch
# Usage example: git pull origin $(git_current_branch)
# Usage example: git pull origin $(git_previous_branch)
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
function git_previous_branch() {
local ref

7
plugins/sanity/README.md Normal file
View file

@ -0,0 +1,7 @@
# sanity autocomplete plugin
* Adds autocomplete options for all Sanity commands.
## Requirements
In order to make this work, you will need to have Sanity set up in your path.

42
plugins/sanity/_sanity Normal file
View file

@ -0,0 +1,42 @@
#compdef sanity
#autoload
# In order to make this work, you will need to have Sanity installed.
# https://www.sanity.io/
local -a _1st_arguments
_1st_arguments=(
'build:Builds the current Sanity configuration to a static bundle.'
'check:Performs a Sanity check.'
'configcheck:Checks if the required configuration files for plugins exists and are up to date.'
'cors:Interact with CORS-entries for your project.'
'dataset:Interact with datasets in your project.'
'debug:Gathers information on Sanity environment.'
'deploy:Deploys a statically built Sanity studio.'
'docs:Opens the Sanity documentation.'
'documents:Interact with documents in your project.'
'exec:Runs a script in Sanity context.'
'graphql:Interact with GraphQL APIs.'
'help:Displays help information about Sanity.'
'hook:Interact with hooks in your project.'
'init:Initialize a new Sanity project or plugin.'
'install:Installs a Sanity plugin to the current Sanity configuration.'
'login:Authenticates against the Sanity.io API.'
'logout:Logs out of the Sanity.io session.'
'manage:Opens the Sanity project management UI.'
'projects:Interact with projects connected to your logged in user.'
'start:Starts a web server for the Content Studio.'
'undeploy:Removes the deployed studio from <hostname>.sanity.studio.'
'uninstall:Removes a Sanity plugin from the current Sanity configuration.'
'upgrade:Upgrades all (or some) Sanity modules to their latest versions.'
'users:Manage users of your project.'
'versions:Shows the installed versions of Sanity CLI and core components.'
)
_arguments -C '*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "sanity subcommand" _1st_arguments
return
fi