From b50d6634b9e968dda0ea7c4147109a8ecd2de963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Graells=20P=C3=A9rez?= <111773685+JuanCaarPapers@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:12:03 +0100 Subject: [PATCH 1/4] Add shell completion script for Jules commands --- plugins/jules/_jules | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 plugins/jules/_jules diff --git a/plugins/jules/_jules b/plugins/jules/_jules new file mode 100644 index 000000000..e767e3794 --- /dev/null +++ b/plugins/jules/_jules @@ -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 "$@" From c7b47cd31bbcf20ba286f236f4f64e47dc4865c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Graells=20P=C3=A9rez?= <111773685+JuanCaarPapers@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:13:19 +0100 Subject: [PATCH 2/4] Create jules.plugin.zsh for Zsh completion Adds a new Zsh plugin for jules CLI completion. --- plugins/jules/jules.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugins/jules/jules.plugin.zsh diff --git a/plugins/jules/jules.plugin.zsh b/plugins/jules/jules.plugin.zsh new file mode 100644 index 000000000..17d1b516b --- /dev/null +++ b/plugins/jules/jules.plugin.zsh @@ -0,0 +1,4 @@ +# Jules Oh My Zsh plugin +# Provides Zsh completion for the jules CLI + +fpath+=(${0:A:h}) From df1f8ae58be3b45a61005a51327fa38bdcb73c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Graells=20P=C3=A9rez?= <111773685+JuanCaarPapers@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:19:02 +0100 Subject: [PATCH 3/4] README.md for jules plugin --- plugins/jules/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 plugins/jules/README.md diff --git a/plugins/jules/README.md b/plugins/jules/README.md new file mode 100644 index 000000000..c21c94559 --- /dev/null +++ b/plugins/jules/README.md @@ -0,0 +1,32 @@ +Sí, está mal formateado porque faltan encabezados ##, bloques de código y listas en markdown. Te lo dejo corregido y compacto, listo para pegar como README.md: + +# 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 From 6a0597c8c70d5b311dc5c3e6ce2e5cfa2f34ad64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Graells=20P=C3=A9rez?= <111773685+JuanCaarPapers@users.noreply.github.com> Date: Sat, 27 Dec 2025 20:19:16 +0100 Subject: [PATCH 4/4] Fix formatting in README.md for Jules plugin Correct formatting issues in README.md with proper headers, code blocks, and lists. --- plugins/jules/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/jules/README.md b/plugins/jules/README.md index c21c94559..6ccf7089d 100644 --- a/plugins/jules/README.md +++ b/plugins/jules/README.md @@ -1,5 +1,3 @@ -Sí, está mal formateado porque faltan encabezados ##, bloques de código y listas en markdown. Te lo dejo corregido y compacto, listo para pegar como README.md: - # Jules Zsh autocompletion for the `jules` command-line interface.