NAME

Cloudflare::API::CLI::Completion - render offline shell completion for cloudflare-api

SYNOPSIS

require Cloudflare::API::CLI::Completion;
my $script=Cloudflare::API::CLI::Completion::generate($shell, $spec_hr);

DESCRIPTION

Cloudflare::API::CLI::Completion renders self-contained Bash, Zsh, and Fish completion scripts from the command specification supplied by cloudflare-api. It performs no authentication, network access, or Cloudflare resource discovery.

FUNCTIONS

generate($shell, $spec_hr)

Return the completion script for bash, zsh, or fish. The specification must contain a resources hash and an options array. An unsupported shell or malformed specification throws an exception.

AUTHOR

Andrew Speer mailto:andrew.speer@isolutions.com.au

LICENSE and COPYRIGHT

Copyright (c) 2026 Andrew Speer. This software is free software under the same terms as Perl 5.