Skip to main content

gadk_cli/deploy/
mod.rs

1// Copyright 2026 Chris Olson
2// Portions derived from ADK-Go (https://github.com/google/adk-go), Copyright 2026 Google LLC.
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! The `deploy` command, with the
17//! `cloudrun` and `agentengine` subcommands each module's `init` adds.
18
19pub mod agentengine;
20pub mod cloudrun;
21
22use clap::Command;
23
24use crate::flags::{pflag_command, stray_args};
25
26/// The `deploy` command's short description.
27pub const SHORT: &str = "Makes deployment to various platforms easy";
28/// The `deploy` command's long description.
29pub const LONG: &str = "Please see subcommands for details";
30
31/// The `deploy` command: no flags of its own; positional arguments that name no subcommand are
32/// accepted (it prints help only when there are none). Subcommands are listed in
33/// sorted order.
34pub fn command() -> Command {
35    pflag_command("deploy")
36        .about(SHORT)
37        .long_about(LONG)
38        .arg(stray_args())
39        .subcommand(agentengine::command())
40        .subcommand(cloudrun::command())
41}