Skip to content

Commit 7ed85c3

Browse files
committed
update for version 0.2.1
1 parent 66fbe17 commit 7ed85c3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

pyGinit/main.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@
1717
init()
1818
config_obj = ConfigParser()
1919

20+
# TODO : check remote repository if exist
21+
# TODO : add new command 'remote' to create (empty)-remote repository only
22+
# TODO : add configuration so user that contains
23+
# customization or default value by user,e.g : change styles,set defaul value etc
2024
# TODO : add ssh
21-
# TODO : user can custom remote name
2225

2326
@click.group()
24-
@click.version_option("0.2.0", help="Show version")
27+
@click.version_option("0.2.1", help="Show version")
2528
def pyginit():
2629
"""pyGinit a simple cli automation tools
2730
to initalize both local and remote repository
2831
29-
version : 0.2.1-beta
32+
version : 0.2.1
3033
"""
3134
pass
3235

@@ -69,7 +72,7 @@ def add_gitignore(gitginore_template):
6972
click.echo(
7073
Fore.RED
7174
+ Style.BRIGHT
72-
+ "Error:Connection error when downloading .gitginore template"
75+
+ "Error:Connection error when downloading gitginore template"
7376
)
7477
exit()
7578

@@ -111,7 +114,6 @@ def init():
111114
if exception happen(connection error,wrong inpu etc) repository(local and remote)
112115
is not created
113116
"""
114-
115117
# add readme
116118
add_readme(
117119
answers.get("readme_confirm"),
@@ -180,6 +182,10 @@ def init():
180182
else:
181183
click.echo("creating repository...Please wait")
182184
click.echo("pushing file to remote")
185+
186+
# initialize local git and push it to remote
187+
# if user cancel the pushing process,
188+
# only remote repository are created(empty repo)
183189
execute_git(
184190
config_obj["auth"]["username"],
185191
config_obj["auth"]["token"],

0 commit comments

Comments
 (0)