unknown-cli 0.9.27__tar.gz → 0.9.28__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/PKG-INFO +1 -1
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/PKG-INFO +1 -1
- unknown-cli-0.9.28/unknowncli/VERSION +1 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/__main__.py +10 -7
- unknown-cli-0.9.27/unknowncli/VERSION +0 -1
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/README.md +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/setup.cfg +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/setup.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/SOURCES.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/dependency_links.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/entry_points.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/requires.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknown_cli.egg-info/top_level.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/__init__.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/commands/__init__.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/commands/preflight.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/commands/project.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/commands/task.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/commands/unreal.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/data/.p4ignore.txt +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/set_registry_keys.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/set_url_handler.py +0 -0
- {unknown-cli-0.9.27 → unknown-cli-0.9.28}/unknowncli/utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.28
|
|
@@ -4,32 +4,35 @@ import pathlib
|
|
|
4
4
|
import requests
|
|
5
5
|
from .utils import console_handler, abort, check_version, check_p4config, check_p4trust, set_url_handler
|
|
6
6
|
from pathlib import Path
|
|
7
|
+
from . import read_version
|
|
7
8
|
|
|
8
9
|
log = logging.getLogger(__name__)
|
|
9
10
|
help_string = """A utility for managing Unknown projects"""
|
|
11
|
+
help_string += f" (unknown-cli/{read_version()})\n"
|
|
10
12
|
|
|
11
13
|
base_path = pathlib.Path(os.path.dirname(__file__))
|
|
12
14
|
commands_folder = base_path / "commands"
|
|
13
15
|
|
|
14
16
|
from typer import Typer, Context, Argument, Option, echo, secho, confirm, prompt
|
|
15
17
|
|
|
18
|
+
help_string += """
|
|
19
|
+
This tool handles the initial setup of Perforce Projects and helps you work with task streams.
|
|
20
|
+
It creates workspaces for you according to naming conventions and sets up a virtual drive.
|
|
21
|
+
Please run the 'project setup' command to get started.
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
check_version()
|
|
16
25
|
app = Typer(add_completion=False)
|
|
17
26
|
|
|
18
|
-
@app.callback(context_settings={"allow_extra_args": True, "ignore_unknown_options": True})
|
|
27
|
+
@app.callback(context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, no_args_is_help=True, help=help_string)
|
|
19
28
|
def cli(
|
|
20
29
|
ctx: Context,
|
|
21
30
|
#verbose: str = Option(None, "-v", "--verbose", help="Verbose logging: info or debug"),
|
|
22
31
|
#output: str = Option("text", "-o", "--output", help="Output text or json"),
|
|
23
32
|
):
|
|
24
|
-
"""
|
|
25
|
-
This tool handles the initial setup of Perforce Projects and helps you work with task streams.
|
|
26
|
-
It creates workspaces for you according to naming conventions and sets up a virtual drive.
|
|
27
|
-
Please run the 'project setup' command to get started.
|
|
28
|
-
"""
|
|
29
33
|
# by default we log out to console WARN and higher but can view info with -v
|
|
30
34
|
#if verbose:
|
|
31
35
|
# console_handler.setLevel(getattr(logging, verbose.upper()))
|
|
32
|
-
check_version()
|
|
33
36
|
set_url_handler()
|
|
34
37
|
check_p4config()
|
|
35
38
|
check_p4trust()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.27
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|