Sfoglia il codice sorgente

bug fix: layout providers

Steve Nyemba 1 anno fa
parent
commit
4b97994ec1
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      bin/transport

+ 5 - 1
bin/transport

@@ -80,7 +80,11 @@ def supported (format:str="table") :
     This function will print supported providers and their associated classifications
     """
     _df =  (transport.supported())
-    print (json.dumps(_df.to_dict(orient="list")))
+    if format in ['list','json'] :
+        print (json.dumps(_df.to_dict(orient="list")))
+    else:
+         print (_df)
+    print ()
 
 @app.command()
 def version():