Skip to content

AboutCommand

AboutCommand

Bases: CommandInterface

About command.

Source code in myalias/core/commands/about_command.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
class AboutCommand(CommandInterface):
    """About command."""

    def execute(self):
        """
        Display information about the application.

        Returns:
            Display information about the application.



        """

        console = Console()

        banner = Text()
        banner.append(
            '    __  ___         ___    ___             \n', 'bold yellow'
        )
        banner.append(
            '   /  |/  /_  __   /   |  / (_)___ _______ \n', 'bold yellow'
        )
        banner.append(
            '  / /|_/ / / / /  / /| | / / / __ \`/ ___/ \n', 'bold yellow'
        )
        banner.append(
            ' / /  / / /_/ /  / ___ |/ / / /_/ (__  )   \n', 'bold green'
        )
        banner.append(
            '/_/  /_/\__, /  /_/  |_/_/_/\__,_/____/    \n', 'bold green'
        )
        banner.append(
            '       /____/                              \n', 'bold green'
        )

        console.print(banner, justify='start')

        version = Text()
        version.append('Version: ', 'yellow')
        version.append(GetVersionAppService().execute(), 'green')
        version.append('\n')

        createBy = Text()
        createBy.append('Created by: ', 'yellow')
        createBy.append('Thiago Melo', 'green')
        createBy.append(' - ', 'bold')
        createBy.append('https://github.com/thiagomeloo')
        createBy.append('\n')

        starProject = Text()
        starProject.append('Star ✨ this project: ', 'yellow')
        starProject.append('https://github.com/thiagomeloo/myalias')
        starProject.append('\n')

        panelText = Text()
        panelText.append(version)
        panelText.append(createBy)
        panelText.append(starProject)

        panelInfo = Panel.fit(
            panelText,
            title='About - MyAlias',
            border_style='green',
            style='bold',
        )
        console.print(panelInfo)

execute()

Display information about the application.

Returns:

Type Description

Display information about the application.

Source code in myalias/core/commands/about_command.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
def execute(self):
    """
    Display information about the application.

    Returns:
        Display information about the application.



    """

    console = Console()

    banner = Text()
    banner.append(
        '    __  ___         ___    ___             \n', 'bold yellow'
    )
    banner.append(
        '   /  |/  /_  __   /   |  / (_)___ _______ \n', 'bold yellow'
    )
    banner.append(
        '  / /|_/ / / / /  / /| | / / / __ \`/ ___/ \n', 'bold yellow'
    )
    banner.append(
        ' / /  / / /_/ /  / ___ |/ / / /_/ (__  )   \n', 'bold green'
    )
    banner.append(
        '/_/  /_/\__, /  /_/  |_/_/_/\__,_/____/    \n', 'bold green'
    )
    banner.append(
        '       /____/                              \n', 'bold green'
    )

    console.print(banner, justify='start')

    version = Text()
    version.append('Version: ', 'yellow')
    version.append(GetVersionAppService().execute(), 'green')
    version.append('\n')

    createBy = Text()
    createBy.append('Created by: ', 'yellow')
    createBy.append('Thiago Melo', 'green')
    createBy.append(' - ', 'bold')
    createBy.append('https://github.com/thiagomeloo')
    createBy.append('\n')

    starProject = Text()
    starProject.append('Star ✨ this project: ', 'yellow')
    starProject.append('https://github.com/thiagomeloo/myalias')
    starProject.append('\n')

    panelText = Text()
    panelText.append(version)
    panelText.append(createBy)
    panelText.append(starProject)

    panelInfo = Panel.fit(
        panelText,
        title='About - MyAlias',
        border_style='green',
        style='bold',
    )
    console.print(panelInfo)