diff --git a/horsy.py b/horsy.py index c0ac518..36f7caa 100644 --- a/horsy.py +++ b/horsy.py @@ -9,9 +9,9 @@ import modules.vars as horsy_vars # Getting the arguments parser = argparse.ArgumentParser(description='horsy - the best package manager') -parser.add_argument('option', help='options for horsy (install/i | uninstall/un | source/s | update/u | list/l | ' +parser.add_argument('option', help='options for horsy (install/i | uninstall/un | source/s | list/l | ' 'upload | search | info | like | dislike)', - choices=['install', 'i', 'uninstall', 'un', 'source', 's', 'update', 'u', 'list', 'l', 'upload', + choices=['install', 'i', 'uninstall', 'un', 'source', 's', 'list', 'l', 'upload', 'search', 'info', 'like', 'dislike'], nargs='?') parser.add_argument('app', help='app to do function with', nargs='?') @@ -71,8 +71,8 @@ if args.vt_key: # Checking if arguments are empty to use in-app CLI if not args.option: - option = ['install', 'uninstall', 'source', 'update', 'list', 'upload', 'search', 'info'][ - tui.menu(['install app', 'uninstall app', 'get source', 'update app', 'list of installed apps', + option = ['install', 'uninstall', 'source', 'list', 'upload', 'search', 'info'][ + tui.menu(['install app', 'uninstall app', 'get source', 'list of installed apps', 'upload your app', 'search for app', 'get information about app'])] isNoArgs = True @@ -82,7 +82,7 @@ if not args.app: app = tui.get(f'Select app to {option}') # Checking user option (Yanderedev method) -if option in 'upload': +if option in ['upload']: from modules.uploader import upload upload() diff --git a/modules/vars.py b/modules/vars.py index f747c9b..562301c 100644 --- a/modules/vars.py +++ b/modules/vars.py @@ -1,6 +1,6 @@ import os -protocol = "http://" -server_url = 'localhost:60666' +protocol = "https://" +server_url = 'horsy.ml' horsypath = os.popen('echo %HORSYPATH%').read().replace('\n', '') + '/' diff --git a/web_vars/search_app b/web_vars/search_app index 423a67d..86136b9 100644 --- a/web_vars/search_app +++ b/web_vars/search_app @@ -1,4 +1,4 @@ { - "APP_ID": "VBUJO9OW62", - "API_KEY": "759f6c7986842fd8218e79e3b9ddb964" + "APP_ID": "2FJWM0BURZ", + "API_KEY": "367b667ea79269e1afc245f9d5372708" } \ No newline at end of file