File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,28 @@ def pull_articles():
112
112
def show_help ():
113
113
help_text = Text ("""
114
114
Usage:
115
+ cas info Show project and developer information.
115
116
cas help Show this help article.
116
117
cas auth Start authentication process.
117
118
cas push <article-link> Add an article.
118
119
cas pull Retrieve your articles.
119
120
""" , style = "bold cyan" )
120
121
console .print (help_text )
121
122
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
+
122
137
def main ():
123
138
if len (sys .argv ) < 2 :
124
139
show_help ()
@@ -139,6 +154,8 @@ def main():
139
154
app = Flask (__name__ )
140
155
app .register_blueprint (auth_bp )
141
156
app .run (port = 8000 )
157
+ elif sys .argv [1 ] == "info" :
158
+ show_info ()
142
159
else :
143
160
show_help ()
144
161
You can’t perform that action at this time.
0 commit comments