Add chroma-config profile list
Update profile usage also
@@ -1075,7 +1075,9 @@ def chroma_config():
elif command == "profile":
def profile_usage():
- print("usage: profile [register|delete|default] PROFILE")
+ print("usage:")
+ print(" profile [list|help]")
+ print(" profile [register|delete|default] PROFILE")
sys.exit(0)
if len(sys.argv) < 3:
@@ -1085,6 +1087,11 @@ def chroma_config():
if operation == "help":
profile_usage()
+ elif operation == "list":
+ for profile in ServerProfile.objects.all():
+ if profile.user_selectable:
+ print(profile.name)
+
elif operation == "register":
try:
register_profile(open(sys.argv[3]))
