File: foo_sub_namespaced3_command.py

package info (click to toggle)
python-cleo 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,120 kB
  • sloc: python: 8,293; makefile: 22; sh: 2
file content (18 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

from typing import ClassVar

from cleo.commands.command import Command


class FooSubNamespaced3Command(Command):
    name = "foo bar"

    description = "The foo bar command"

    aliases: ClassVar[list[str]] = ["foobar"]

    def handle(self) -> int:
        question = self.ask("", default="default input")
        self.line(question)
        return 0