vortex-cli 8.4.0__tar.gz → 8.4.1__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 (61) hide show
  1. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/PKG-INFO +7 -3
  2. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/README.md +6 -2
  3. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/pyproject.toml +1 -1
  4. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/clone.py +44 -2
  5. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/PKG-INFO +7 -3
  6. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/LICENSE +0 -0
  7. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/setup.cfg +0 -0
  8. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/__init__.py +0 -0
  9. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/__main__.py +0 -0
  10. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/cli.py +0 -0
  11. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/colour.py +0 -0
  12. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/__init__.py +0 -0
  13. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/agenda.py +0 -0
  14. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/app.py +0 -0
  15. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/clean.py +0 -0
  16. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/code.py +0 -0
  17. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/compile.py +0 -0
  18. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/db.py +0 -0
  19. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/diff.py +0 -0
  20. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/docs.py +0 -0
  21. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/execute.py +0 -0
  22. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/fetch.py +0 -0
  23. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/file.py +0 -0
  24. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/info.py +0 -0
  25. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/keyword.py +0 -0
  26. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/libs.py +0 -0
  27. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/log.py +0 -0
  28. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/object_.py +0 -0
  29. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/pull.py +0 -0
  30. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/search.py +0 -0
  31. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/servers.py +0 -0
  32. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/stats.py +0 -0
  33. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/use.py +0 -0
  34. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/watch.py +0 -0
  35. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/commands/weblog.py +0 -0
  36. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/constants.py +0 -0
  37. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/docs/Blackbook v2.md +0 -0
  38. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/docs/Blackbook.pdf +0 -0
  39. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/docs/index.html +0 -0
  40. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/docs/marked.min.js +0 -0
  41. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/git.py +0 -0
  42. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/lib/puakma-6.0.40.jar +0 -0
  43. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/libs.py +0 -0
  44. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/logging.py +0 -0
  45. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/main.py +0 -0
  46. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/models.py +0 -0
  47. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/output.py +0 -0
  48. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/registry.py +0 -0
  49. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/schedule.py +0 -0
  50. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/server_options.py +0 -0
  51. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/soap.py +0 -0
  52. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/spinner.py +0 -0
  53. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/sync.py +0 -0
  54. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/util.py +0 -0
  55. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/webdesign.py +0 -0
  56. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex/workspace.py +0 -0
  57. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/SOURCES.txt +0 -0
  58. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/dependency_links.txt +0 -0
  59. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/entry_points.txt +0 -0
  60. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/requires.txt +0 -0
  61. {vortex_cli-8.4.0 → vortex_cli-8.4.1}/vortex_cli.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vortex_cli
3
- Version: 8.4.0
3
+ Version: 8.4.1
4
4
  Summary: Vortex CLI
5
5
  Author-email: Jordan Amos <jordan.amos@gmail.com>
6
6
  License: MIT License
@@ -113,6 +113,9 @@ While it is possible to use without it, this software has been purposefully desi
113
113
  Puakma root's disk marked (see [Server statistics](#server-statistics)); `--json` adds them
114
114
  as `disks`. It needs vortex/gateway 0.3.0, which adds them to `GET stats`; with an older
115
115
  gateway the overview says so in one line.
116
+ - **8.4.1: `vortex clone` ignores case in a TemplateName or `group/name`.** `vortex clone
117
+ ui20complete/mastercustom` clones `ui20Complete/MasterCustom`; the name must still match in
118
+ full. If two applications differ only in case, the one typed exactly wins.
116
119
 
117
120
  ## Upgrading to 8.3
118
121
 
@@ -906,8 +909,9 @@ outright is always cloned. Groups are matched the way `app list --group` matches
906
909
  case-insensitive substring - except that an exact group name always wins, so cloning
907
910
  `BetTrackr` never drags in `BetTrackrLegacy`. If a partial name still spans several groups,
908
911
  vortex stops and lists them. A bare word that is genuinely both a TemplateName and a group
909
- is refused: use `--group NAME` or the ID. References may be qualified as `SERVER:REF`
910
- (`dev:BetTrackr`).
912
+ is refused: use `--group NAME` or the ID. A TemplateName or `group/name` must match in full but
913
+ ignores case; if two applications differ only in case, the one typed exactly wins. References
914
+ may be qualified as `SERVER:REF` (`dev:BetTrackr`).
911
915
 
912
916
  ### Working with Multiple Servers
913
917
 
@@ -69,6 +69,9 @@ While it is possible to use without it, this software has been purposefully desi
69
69
  Puakma root's disk marked (see [Server statistics](#server-statistics)); `--json` adds them
70
70
  as `disks`. It needs vortex/gateway 0.3.0, which adds them to `GET stats`; with an older
71
71
  gateway the overview says so in one line.
72
+ - **8.4.1: `vortex clone` ignores case in a TemplateName or `group/name`.** `vortex clone
73
+ ui20complete/mastercustom` clones `ui20Complete/MasterCustom`; the name must still match in
74
+ full. If two applications differ only in case, the one typed exactly wins.
72
75
 
73
76
  ## Upgrading to 8.3
74
77
 
@@ -862,8 +865,9 @@ outright is always cloned. Groups are matched the way `app list --group` matches
862
865
  case-insensitive substring - except that an exact group name always wins, so cloning
863
866
  `BetTrackr` never drags in `BetTrackrLegacy`. If a partial name still spans several groups,
864
867
  vortex stops and lists them. A bare word that is genuinely both a TemplateName and a group
865
- is refused: use `--group NAME` or the ID. References may be qualified as `SERVER:REF`
866
- (`dev:BetTrackr`).
868
+ is refused: use `--group NAME` or the ID. A TemplateName or `group/name` must match in full but
869
+ ignores case; if two applications differ only in case, the one typed exactly wins. References
870
+ may be qualified as `SERVER:REF` (`dev:BetTrackr`).
867
871
 
868
872
  ### Working with Multiple Servers
869
873
 
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "vortex_cli"
8
- version = "8.4.0"
8
+ version = "8.4.1"
9
9
  description = "Vortex CLI"
10
10
  requires-python = ">=3.10"
11
11
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -288,6 +288,46 @@ def _fetch_apps(
288
288
  )
289
289
 
290
290
 
291
+ def _fetch_exact_apps(
292
+ server: PuakmaServer,
293
+ *,
294
+ name: str | None = None,
295
+ group: str | None = None,
296
+ template: str | None = None,
297
+ ) -> list[PuakmaApplication]:
298
+ """
299
+ Applications whose name, group and TemplateName equal the given
300
+ values, ignoring case - 'ui20complete/mastercustom' finds
301
+ 'ui20Complete/MasterCustom'. Should the server have applications
302
+ differing only in case, the exact-case match wins. A named
303
+ application is always looked up in full, inherited ones included.
304
+ """
305
+
306
+ def equal(app: PuakmaApplication, fold: bool) -> bool:
307
+ def eq(actual: str | None, want: str | None) -> bool:
308
+ if want is None:
309
+ return True
310
+ actual = actual or ""
311
+ return actual.casefold() == want.casefold() if fold else actual == want
312
+
313
+ return (
314
+ eq(app.name, name)
315
+ and eq(app.group, group)
316
+ and eq(app.template_name, template)
317
+ )
318
+
319
+ def wanted(value: str | None) -> list[str]:
320
+ return [value] if value is not None else []
321
+
322
+ # The non-strict filter is a case-insensitive substring match, so it
323
+ # narrows the inventory without losing any case-insensitive equal
324
+ apps = _fetch_apps(server, wanted(name), wanted(group), wanted(template), False)
325
+ matches = [app for app in apps if equal(app, True)]
326
+ if len(matches) > 1:
327
+ return [app for app in matches if equal(app, False)] or matches
328
+ return matches
329
+
330
+
291
331
  def _resolve_one(
292
332
  server: PuakmaServer, matches: list[PuakmaApplication], desc: str
293
333
  ) -> list[int] | None:
@@ -378,7 +418,7 @@ def _resolve_bare_word(
378
418
  '--group' clones the group. A TemplateName names one application,
379
419
  so it is looked up in full; the group expansion honours include_all.
380
420
  """
381
- templates = _fetch_apps(server, [], [], [word], True)
421
+ templates = _fetch_exact_apps(server, template=word)
382
422
  group_apps = _fetch_group_apps(server, word, include_all)
383
423
  if templates and group_apps:
384
424
  logger.error(
@@ -414,7 +454,9 @@ def _resolve_refs_to_ids(
414
454
  elif ref.template is not None:
415
455
  resolved = _resolve_bare_word(server, ref.template, include_all)
416
456
  else:
417
- matches = _fetch_apps(server, [ref.name or ""], [ref.group or ""], [], True)
457
+ matches = _fetch_exact_apps(
458
+ server, name=ref.name or "", group=ref.group or ""
459
+ )
418
460
  resolved = _resolve_one(
419
461
  server, matches, f"application '{ref.group}/{ref.name}'"
420
462
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vortex_cli
3
- Version: 8.4.0
3
+ Version: 8.4.1
4
4
  Summary: Vortex CLI
5
5
  Author-email: Jordan Amos <jordan.amos@gmail.com>
6
6
  License: MIT License
@@ -113,6 +113,9 @@ While it is possible to use without it, this software has been purposefully desi
113
113
  Puakma root's disk marked (see [Server statistics](#server-statistics)); `--json` adds them
114
114
  as `disks`. It needs vortex/gateway 0.3.0, which adds them to `GET stats`; with an older
115
115
  gateway the overview says so in one line.
116
+ - **8.4.1: `vortex clone` ignores case in a TemplateName or `group/name`.** `vortex clone
117
+ ui20complete/mastercustom` clones `ui20Complete/MasterCustom`; the name must still match in
118
+ full. If two applications differ only in case, the one typed exactly wins.
116
119
 
117
120
  ## Upgrading to 8.3
118
121
 
@@ -906,8 +909,9 @@ outright is always cloned. Groups are matched the way `app list --group` matches
906
909
  case-insensitive substring - except that an exact group name always wins, so cloning
907
910
  `BetTrackr` never drags in `BetTrackrLegacy`. If a partial name still spans several groups,
908
911
  vortex stops and lists them. A bare word that is genuinely both a TemplateName and a group
909
- is refused: use `--group NAME` or the ID. References may be qualified as `SERVER:REF`
910
- (`dev:BetTrackr`).
912
+ is refused: use `--group NAME` or the ID. A TemplateName or `group/name` must match in full but
913
+ ignores case; if two applications differ only in case, the one typed exactly wins. References
914
+ may be qualified as `SERVER:REF` (`dev:BetTrackr`).
911
915
 
912
916
  ### Working with Multiple Servers
913
917
 
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