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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ry-tool
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: Pure YAML command orchestrator - CI/CD for humans
5
5
  Author: Fredrik Angelsen
6
6
  Author-email: Fredrik Angelsen <fredrikangelsen@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ry-tool"
3
- version = "1.1.0"
3
+ version = "1.2.0"
4
4
  description = "Pure YAML command orchestrator - CI/CD for humans"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -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