Skip to content

Commit

Permalink
added cli support
Browse files Browse the repository at this point in the history
  • Loading branch information
charudatta10 committed May 29, 2024
1 parent e9626cc commit f7263d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ The project generates readme file.

- Generates badges
- Generate markdown file


## Built With 🔧
![](https://img.shields.io/badge/Javascript-0D1629?style=for-the-badge&logo=javaScript&logoColor=fff) ![](https://img.shields.io/badge/Css3-24AE53?style=for-the-badge&logo=css3&logoColor=fff) ![](https://img.shields.io/badge/Html5-BB9DBD?style=for-the-badge&logo=html5&logoColor=000) ![](https://img.shields.io/badge/Python-448EEA?style=for-the-badge&logo=python&logoColor=fff) ![](https://img.shields.io/badge/Latex-D8C458?style=for-the-badge&logo=latex&logoColor=000)
![](https://img.shields.io/badge/Javascript-0FA370?style=for-the-badge&logo=javaScript&logoColor=fff) ![](https://img.shields.io/badge/Css3-149D1B?style=for-the-badge&logo=css3&logoColor=fff) ![](https://img.shields.io/badge/Html5-08EE28?style=for-the-badge&logo=html5&logoColor=fff) ![](https://img.shields.io/badge/Python-ADA66C?style=for-the-badge&logo=python&logoColor=000) ![](https://img.shields.io/badge/Latex-F9538F?style=for-the-badge&logo=latex&logoColor=000)

<!-- GETTING STARTED -->

Expand Down Expand Up @@ -97,5 +97,4 @@ The contribution to this project should adhere to GPL-3.0 and respect the copyri
## License 📜

Copyright :copyright: 2024 ![ck](favicon05.svg):tm: @ charudatta10.
The project is licensed [GPL-3.0](./LICENSE).

The project is licensed [GPL-3.0](./LICENSE).
14 changes: 10 additions & 4 deletions readme_generator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import random
import json

from fire import Fire

class readme_gen():

Expand Down Expand Up @@ -50,10 +50,16 @@ def gen_str(self):
def gen_file(self):
with open("README.md", "w", encoding="utf-8") as f:
f.write(self.doc)

def run(self, file="config.json"):
self.add_config(file)
self.gen_str()
self.gen_file()
# print(doc)

if __name__ == "__main__":
file = readme_gen()
file.add_config("config.json")
file.gen_str()
#file.gen_file("README.md")
Fire(file)
#file.add_config("config.json")
#file.gen_str()
#file.gen_file()

0 comments on commit f7263d2

Please sign in to comment.