Skip to content

Commit 63123e1

Browse files
Add 'info' command to CLI for project and developer information
1 parent 0b6bf98 commit 63123e1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CLI/cas/cli.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,28 @@ def pull_articles():
112112
def show_help():
113113
help_text = Text("""
114114
Usage:
115+
cas info Show project and developer information.
115116
cas help Show this help article.
116117
cas auth Start authentication process.
117118
cas push <article-link> Add an article.
118119
cas pull Retrieve your articles.
119120
""", style="bold cyan")
120121
console.print(help_text)
121122

123+
def show_info():
124+
info_text = Text("""
125+
Project Information:
126+
GitHub Repo: https://github.com/upayanmazumder/Collaborative-Article-Sharing
127+
PyPI Repo: https://pypi.org/project/collaborative-article-sharing/
128+
Discord: https://discord.gg/wQTZcXpcaY
129+
Website: https://cas.upayan.dev
130+
131+
Developer Information:
132+
Name: Upayan Mazumder
133+
My Site: https://upayan.dev
134+
""", style="bold yellow")
135+
console.print(info_text)
136+
122137
def main():
123138
if len(sys.argv) < 2:
124139
show_help()
@@ -139,6 +154,8 @@ def main():
139154
app = Flask(__name__)
140155
app.register_blueprint(auth_bp)
141156
app.run(port=8000)
157+
elif sys.argv[1] == "info":
158+
show_info()
142159
else:
143160
show_help()
144161

0 commit comments

Comments
 (0)