Explorar el Código

changed darkcli to drk and made executable. moved to /scripts

rachel-rose hace 5 años
padre
commit
83485d8a01
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      scripts/drk

+ 3 - 2
darkcli.py → scripts/drk

@@ -1,11 +1,11 @@
-# TODO: refactor into async
+#!/usr/bin/env python
 
 import argparse
 import requests
 import json
 
 def arg_parser(client):
-    parser = argparse.ArgumentParser(prog='dark',
+    parser = argparse.ArgumentParser(prog='drk',
                                           usage='%(prog)s [commands]',
                                           description="""DarkFi wallet
                                           command-line tool""")
@@ -46,6 +46,7 @@ def arg_parser(client):
             raise
 
 
+# TODO: refactor into async
 class DarkClient:
     # TODO: generate random ID (4 byte unsigned int) (rand range 0 - max size
     # uint32