1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-04-10 16:32:00 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Juancar
3eee01b7ba Merge 6a0597c8c7 into 887a864aba 2026-04-07 03:16:18 +00:00
Juan Carlos Graells Pérez
6a0597c8c7 Fix formatting in README.md for Jules plugin
Correct formatting issues in README.md with proper headers, code blocks, and lists.
2025-12-27 20:19:16 +01:00
Juan Carlos Graells Pérez
df1f8ae58b README.md for jules plugin 2025-12-27 20:19:02 +01:00
Juan Carlos Graells Pérez
c7b47cd31b Create jules.plugin.zsh for Zsh completion
Adds a new Zsh plugin for jules CLI completion.
2025-12-27 20:13:19 +01:00
Juan Carlos Graells Pérez
b50d6634b9 Add shell completion script for Jules commands 2025-12-27 20:12:03 +01:00
3 changed files with 93 additions and 0 deletions

30
plugins/jules/README.md Normal file
View File

@@ -0,0 +1,30 @@
# Jules
Zsh autocompletion for the `jules` command-line interface.
## Installation
Add `jules` to the plugins list in your `.zshrc`:
```zsh
plugins=(... jules)
Reload your shell:
source ~/.zshrc
```
Features:
- Command and subcommand completion
- Flags and options completio
- Support for remote command
Requirements:
- Zsh
- Oh My Zs
- Jules CLI available in $PATH (download on https://jules.google/docs/cli/reference)
Maintainer
JuanCaarPapers
https://github.com/JuanCaarPapers

59
plugins/jules/_jules Normal file
View File

@@ -0,0 +1,59 @@
#compdef jules
_jules() {
local line
_arguments -C \
"1: :->command" \
"*::arg:->args"
case $state in
command)
local -a commands
commands=(
'login:Sign in to Jules with your Google account'
'logout:Sign out of the current session'
'remote:Manage repositories and remote sessions'
'version:Show the installed version of Jules'
'help:Show general help or help for a specific command'
'completion:Generate shell autocompletion scripts'
)
_describe -t commands 'jules command' commands
;;
args)
case $words[1] in
remote)
_arguments \
"1: :->remote_cmd" \
"*::arg:->remote_args"
case $state in
remote_cmd)
local -a remote_commands
remote_commands=(
'list:List connected repositories or active sessions'
'new:Start a new Jules session in a repository'
'pull:Download the results of a session'
)
_describe -t remote_commands 'remote command' remote_commands
;;
remote_args)
_arguments \
'--repo[Specify the repository (e.g. user/repo)]:repo:_files' \
'--session[Session name or ID]:session:' \
'--parallel[Number of parallel sessions]:count:' \
'--theme[Interface theme (light/dark)]:theme:(light dark)'
;;
esac
;;
*)
_arguments \
'(-h --help)'{-h,--help}'[Show help]' \
'--theme[Set the visual theme]:theme:(light dark)'
;;
esac
;;
esac
}
_jules "$@"

View File

@@ -0,0 +1,4 @@
# Jules Oh My Zsh plugin
# Provides Zsh completion for the jules CLI
fpath+=(${0:A:h})