Spaces:
Runtime error
Runtime error
File size: 1,609 Bytes
808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 01df4b3 808bf67 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
from .ops import Ops
@Ops.configure_and_build_subcommand
def main(log_info: bool = False):
if log_info:
print(
"""
π Hi there! Welcome to techdocs. Here are some cool things you can do:
π« try out a demo with or new GUI π and explore how to use the CLI:
β‘οΈ https://techdocs.streamlit.app/
π« signup here to get an API key π€:
$ techdocs signup -u <username> -p <password> -e <email>
π« use the line below to issue a new API key ποΈ:
$ techdocs apikey -u <username> -p <password>
π« use the CLI to generate documentation for your project π:
$ techdocs generate -k <api_key> -u <username> -p <password> -d <directory>
"""
)
# parser.add_argument('--api_key','-k',type=str,required=True,help='API key for Techdocs')
# parser.add_argument('--username','-u',type=str,required=True,help='Username for Techdocs')
# parser.add_argument('--password','-p',type=str,required=True,help='Password for Techdocs')
# parser.add_argument('--dir','-d',type=str,required=True,help='Root directory to be documented')
# # parser.add_argument('--version','-v',action='version',version="%(prog)s 0.0.1")
# args=parser.parse_args()
# data = {
# "username":config['username'],
# "password":config['password']
# }
# config.update({"access_token":functools.get_access_token(data)})
# parse.extract_functions_from_directory(config)
if __name__ == '__main__':
main() |