Skip to content

Added ability to push only one file with --agent argument#48

Closed
joshcodes wants to merge 2 commits intoelevenlabs:mainfrom
affirmhealth:main
Closed

Added ability to push only one file with --agent argument#48
joshcodes wants to merge 2 commits intoelevenlabs:mainfrom
affirmhealth:main

Conversation

@joshcodes
Copy link

No description provided.

@joshcodes
Copy link
Author

Add shell completion support

  • Add 'elevenlabs completion bash' and 'elevenlabs completion zsh' commands
  • Include completions for all subcommands, flags, and dynamic agent IDs
  • Usage: eval "$(elevenlabs completion bash)"

@joshcodes
Copy link
Author

Shell Completion Support

The elevenlabs completion command generates shell completion scripts for bash and zsh.

Installation

Bash - Add to ~/.bashrc or ~/.bash_profile:

eval "$(elevenlabs completion bash)"

Zsh - Add to ~/.zshrc:

eval "$(elevenlabs completion zsh)"

Then restart your shell or run source ~/.bashrc (or ~/.zshrc).

Usage Examples

# Top-level command completion
elevenlabs <TAB>
# Shows: auth agents tools tests components completion

# Subcommand completion
elevenlabs agents <TAB>
# Shows: init add list delete status push pull templates widget test

# Flag completion
elevenlabs agents push <TAB>
# Shows: --agent --dry-run

# Dynamic agent ID completion (reads from agents.json)
elevenlabs agents push --agent <TAB>
# Shows: agent_8501ked312yafaxam3w5b4qvsk0f agent_6801ked66vd1fdfr3qgn807b1ajm ...

# Template type completion
elevenlabs agents add --template <TAB>
# Shows: default minimal voice-only text-only customer-service assistant

# Tool type completion
elevenlabs tools add --type <TAB>
# Shows: webhook client

Features

  • Context-aware completions for all commands and subcommands
  • Dynamic agent ID suggestions from local agents.json
  • Flag and option completions with descriptions (zsh)
  • Template and tool type value completions

@AngeloGiacco
Copy link
Collaborator

hey @joshcodes happy to approve, could you fix the linter please?

@PennyroyalTea
Copy link
Collaborator

@joshcodes thanks for contribution, merged in #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants