unknown-cli 0.9.9__tar.gz → 0.9.10__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.
Files changed (23) hide show
  1. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/PKG-INFO +1 -1
  2. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/PKG-INFO +1 -1
  3. unknown-cli-0.9.10/unknowncli/VERSION +1 -0
  4. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/utils.py +9 -0
  5. unknown-cli-0.9.9/unknowncli/VERSION +0 -1
  6. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/README.md +0 -0
  7. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/setup.cfg +0 -0
  8. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/setup.py +0 -0
  9. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/SOURCES.txt +0 -0
  10. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/dependency_links.txt +0 -0
  11. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/entry_points.txt +0 -0
  12. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/requires.txt +0 -0
  13. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknown_cli.egg-info/top_level.txt +0 -0
  14. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/__init__.py +0 -0
  15. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/__main__.py +0 -0
  16. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/commands/__init__.py +0 -0
  17. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/commands/preflight.py +0 -0
  18. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/commands/project.py +0 -0
  19. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/commands/task.py +0 -0
  20. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/commands/unreal.py +0 -0
  21. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/data/.p4ignore.txt +0 -0
  22. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/set_registry_keys.py +0 -0
  23. {unknown-cli-0.9.9 → unknown-cli-0.9.10}/unknowncli/set_url_handler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.9
3
+ Version: 0.9.10
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.9
3
+ Version: 0.9.10
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -0,0 +1 @@
1
+ 0.9.10
@@ -5,6 +5,7 @@ import botocore.session
5
5
  from datetime import datetime, timedelta
6
6
  import requests
7
7
  import click
8
+ import ctypes
8
9
  import typer
9
10
  import configparser
10
11
  import logging
@@ -239,12 +240,20 @@ def check_version():
239
240
  if (v != my_version):
240
241
  upgrade_cmd = "pip install unknown-cli -U"
241
242
  secho(f"\nVersion {v} of this tool is available while you are on version {my_version}.", fg="yellow")
243
+
244
+ is_admin = ctypes.windll.shell32.IsUserAnAdmin()
245
+ if not is_admin:
246
+ secho(f"Upgrade suggested, run any unk command again in an administrator prompt or run this manually: {upgrade_cmd}.", fg="yellow")
247
+ return
248
+
242
249
  if confirm("(RECOMMENDED) Upgrade now?", prompt_suffix=""):
243
250
  if call(f"{sys.executable} -m {upgrade_cmd}") != 0:
244
251
  abort(f"Upgrade failed, please try posting this in Slack, or try running the command manually: {upgrade_cmd}")
245
252
  secho(f"\nUpgrade successful! Please run your original request or command again.", fg="green", bold=True)
246
253
  sys.exit(0)
254
+
247
255
  secho(f"Please upgrade this tool using: {upgrade_cmd}\n", fg="yellow", bold=True)
256
+ return
248
257
  else:
249
258
  with version_check_file.open("w") as f:
250
259
  f.write(f"{fmt_date(datetime.utcnow())}")
@@ -1 +0,0 @@
1
- 0.9.9
File without changes
File without changes
File without changes