Skip to content

Commit 97bf28b

Browse files
Jacksunweicopybara-github
authored andcommitted
chore: Adds --version to adk cli.
Sample: ``` -> % adk --version adk, version 1.0.0 ``` Help with google#832 PiperOrigin-RevId: 764297949
1 parent d6c6bb4 commit 97bf28b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/google/adk/cli/cli_tools_click.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from __future__ import annotations
16+
1517
import asyncio
1618
import collections
1719
from contextlib import asynccontextmanager
@@ -84,6 +86,7 @@ def parse_args(self, ctx, args):
8486

8587

8688
@click.group(context_settings={"max_content_width": 240})
89+
@click.version_option(version.__version__)
8790
def main():
8891
"""Agent Development Kit CLI tools."""
8992
pass

0 commit comments

Comments
 (0)