ry-tool 1.1.0__tar.gz → 1.2.0__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.
- {ry_tool-1.1.0 → ry_tool-1.2.0}/PKG-INFO +1 -1
- {ry_tool-1.1.0 → ry_tool-1.2.0}/pyproject.toml +1 -1
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/loader.py +3 -1
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/parser.py +8 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/README.md +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/__init__.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/__main__.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/_cli.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/app.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/context.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/executor.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/installer.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/matcher.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/template.py +0 -0
- {ry_tool-1.1.0 → ry_tool-1.2.0}/src/ry_tool/utils.py +0 -0
@@ -22,6 +22,7 @@ class LibraryConfig:
|
|
22
22
|
commands: Dict[str, Any] = field(default_factory=dict)
|
23
23
|
metadata: Dict[str, Any] = field(default_factory=dict)
|
24
24
|
path: Optional[Path] = None
|
25
|
+
workflows: List[str] = field(default_factory=list) # Common workflow examples
|
25
26
|
|
26
27
|
|
27
28
|
class LibraryLoader:
|
@@ -179,7 +180,8 @@ class LibraryLoader:
|
|
179
180
|
description=data.get('description', ''),
|
180
181
|
commands=commands,
|
181
182
|
metadata=metadata,
|
182
|
-
path=path
|
183
|
+
path=path,
|
184
|
+
workflows=data.get('workflows', [])
|
183
185
|
)
|
184
186
|
|
185
187
|
def _validate_command(self, name: str, config: Dict[str, Any]):
|
@@ -240,6 +240,14 @@ class CommandParser:
|
|
240
240
|
if cmd_name != '*': # Skip catch-all
|
241
241
|
desc = cmd_config.get('description', 'No description')
|
242
242
|
help_lines.append(f" {cmd_name:<15} {desc}")
|
243
|
+
|
244
|
+
# Add common workflows if defined
|
245
|
+
if hasattr(library_config, 'workflows') and library_config.workflows:
|
246
|
+
help_lines.append("")
|
247
|
+
help_lines.append("Common workflow:")
|
248
|
+
for workflow in library_config.workflows:
|
249
|
+
help_lines.append(f" {workflow}")
|
250
|
+
|
243
251
|
help_lines.append("")
|
244
252
|
help_lines.append("Use: ry-next <library> <command> --help for command details")
|
245
253
|
|
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
|