MCPcopy
hub / github.com/RunaCapital/awesome-oss-alternatives / add_company_from_command_line

Function add_company_from_command_line

add_company.py:111–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110
111def add_company_from_command_line():
112 count = 0
113 args = dict()
114
115 while True:
116 if count == 0:
117 args["company_name"] = input("Enter the company name.\n(e.g Metabase)\n: ")
118 print("-" * 100)
119 count += 1
120 elif count == 1:
121 args["category"] = input(
122 "Enter category of the company. May be an existing or a new one.\n(e.g Business Intelligence)\n: "
123 )
124 print("-" * 100)
125 count += 1
126 elif count == 2:
127 args["description"] = input(
128 "Description of the company.\nKeep it short and simple (use one line)\n: "
129 )
130 print("-" * 100)
131 count += 1
132 elif count == 3:
133 args["link"] = input(
134 """Url to the company's website.\n(e.g https://www.metabase.com/)\n: """
135 )
136 print("-" * 100)
137 count += 1
138 elif count == 4:
139 args["gh_link"] = input(
140 """"Url of the product's github repo.\n(e.g https://github.com/metabase/metabase)\n: """
141 )
142 print("-" * 100)
143 count += 1
144 elif count == 5:
145 args["alts_names"] = input(
146 """Names of the company's well-known SaaS competitors.\n(e.g for Metabase: PowerBI, DataStudio, Tableau)\n: """
147 ).split(",")
148 print("-" * 100)
149 count += 1
150 elif count == 6:
151 args["alts_links"] = input(
152 "Links to the corresponding SaaS competitors.\n(e.g for Metabase: https://powerbi.microsoft.com/, https://datastudio.google.com/, https://www.tableau.com/)\n: "
153 ).split(",")
154 print("-" * 100)
155 count += 1
156 else:
157 result = add_new_company(**args)
158 print(result)
159 break
160
161
162if __name__ == "__main__":

Callers 1

add_company.pyFile · 0.85

Calls 1

add_new_companyFunction · 0.85

Tested by

no test coverage detected