Skip to content

Commit 0984782

Browse files
committed
wip
1 parent 0616e6c commit 0984782

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

structkit/commands/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, parser):
2222
'--structures-path',
2323
type=str,
2424
help='Path to structure definitions',
25-
default=os.getenv('STRUCTKIT_STRUCTURES_PATH')
25+
default=os.getenv('STRUCTKIT_STRUCTURES_PATH', None)
2626
)
2727
parser.add_argument('-n', '--input-store', type=str, help='Path to the input store', default='/tmp/structkit/input.json')
2828
parser.add_argument('-d', '--dry-run', action='store_true', help='Perform a dry run without creating any files or directories')

structkit/commands/info.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ def __init__(self, parser):
1212
super().__init__(parser)
1313
parser.description = "Show information about the package or structure definition"
1414
parser.add_argument('structure_definition', type=str, help='Name of the structure definition')
15-
parser.add_argument('-s', '--structures-path', type=str, help='Path to structure definitions')
15+
parser.add_argument(
16+
'-s', '--structures-path', type=str, help='Path to structure definitions',
17+
default=os.getenv('STRUCTKIT_STRUCTURES_PATH', None)
18+
)
1619
parser.add_argument('--mcp', action='store_true', help='Enable MCP (Model Context Protocol) integration')
1720

1821
parser.set_defaults(func=self.execute)

structkit/commands/list.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ class ListCommand(Command):
88
def __init__(self, parser):
99
super().__init__(parser)
1010
parser.description = "List available structures"
11-
parser.add_argument('-s', '--structures-path', type=str, help='Path to structure definitions')
11+
parser.add_argument(
12+
'-s', '--structures-path', type=str, help='Path to structure definitions',
13+
default=os.getenv('STRUCTKIT_STRUCTURES_PATH', None)
14+
)
1215
parser.add_argument('--names-only', action='store_true', help='Print only structure names, one per line (for shell completion)')
1316
parser.add_argument('--mcp', action='store_true', help='Enable MCP (Model Context Protocol) integration')
1417
parser.set_defaults(func=self.execute)

0 commit comments

Comments
 (0)