Skip to content

Commit

Permalink
Fix first-time initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
tardis4500 committed May 29, 2024
1 parent 80309f5 commit 8e86a61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# git-stream Python Module

A module for supporting CI/CD actions.
A command line tool to implement streams in Git.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# git-stream Python Module

A module for automating CI/CD tasks.
A command line tool to implement streams in Git.

## Developing

Expand Down
6 changes: 3 additions & 3 deletions git_stream/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
default_pr_reviewer='',
delivery_branch_template='%t_%d',
stream_branch_prefix=f'{getuser()}/',
stream_home=Path('~/git/streams').expanduser())
stream_home=str(Path('~/git/streams').expanduser()))
DELIVERY_REPLACERS = {'%t': 'ticket',
'%d': 'description'}

Expand Down Expand Up @@ -161,7 +161,7 @@ def update(self) -> None:
def main() -> None:
"""The main entry point."""
if not CONFIG.exists():
_write_config(DEFAULTS | DotMap(streams={}))
_write_config(DEFAULTS | DotMap(schema=CONFIG_SCHEMA, streams={}))
Commander('Git Stream Manager', subparsers=[SubParser('add_parent', lambda a: stream_action('add_parent', **vars(a)), [Argument('parent')]),
SubParser('config', configurator, [Argument('-s', '--set')]),
SubParser('create', create, [Argument('-p', '--parent'), Argument('-t', '--ticket'), Argument('-d', '--delivery-branch'),
Expand Down Expand Up @@ -250,7 +250,7 @@ def create(args: Namespace) -> None:
description=args.name,
branch=stream_branch,
parents=[parent],
schema=CONFIG_SCHEMA)
schema=STREAM_SCHEMA)
for item in ('delivery_branch', 'ticket'):
if value := getattr(args, item):
config.streams[stream_name][item] = value
Expand Down

0 comments on commit 8e86a61

Please sign in to comment.