Skip to content

Commit f802b93

Browse files
Merge pull request #138 from pranavbaburaj/master
fix:Fix module issue
2 parents 19c3787 + 697d3f6 commit f802b93

File tree

12 files changed

+11
-9
lines changed

12 files changed

+11
-9
lines changed

dynamic/__init__.py

Whitespace-only changes.

main.py renamed to dynamic/__main__.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
import argparse
4-
from src.arguments.search import Search
4+
from dynamic.search import Search
55

66

77
version = "0.1.0"
@@ -74,9 +74,9 @@
7474

7575
search_flag = Search(ARGV)
7676

77-
if __name__ == "__main__":
78-
if ARGV.start:
79-
print('''\U0001F604 Hello and Welcome to Dynamic CLI
77+
def main():
78+
if ARGV.start:
79+
print('''\U0001F604 Hello and Welcome to Dynamic CLI
8080
\U0001F917 Use the following commands to get started
8181
\U0001F50E Search on StackOverflow with '-s'
8282
\U0001F4C4 Open browser to create new Stack Overflow question with '-n [title(optional)]'
@@ -85,5 +85,8 @@
8585
\U0001F609 See this message again with '-st'
8686
\U00002755 Get help with '-h'
8787
''')
88-
else:
89-
search_flag.search_args()
88+
else:
89+
search_flag.search_args()
90+
91+
92+
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)