Skip to content

Commit

Permalink
updated readme; futzed with documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Catherine Oborski committed Sep 8, 2024
1 parent 3dc997d commit e9e0ca4
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 63 deletions.
File renamed without changes.
16 changes: 16 additions & 0 deletions .github/README.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ This project is just getting started and only has a couple of features implement

[![cOborski/zipssion](https://img.shields.io/static/v1?label=cOborski&message=zipssion&color=yellow&logo=github)](https://github.com/coborski/zipssion/)

## Planned Usage
`Usage:
main.py <file> [--quiet | --verbose] [--path=<path>] [--extention=<file extention>]
main.py (-h | --help)
main.py --version
main.py --quiet
main.py --verbose

Options:
-h --help show help text
--version show version
--quiet print less text
--verbose print more text
--path=<path> list of file paths [default: {'/'}]
--extention=<file extention> the file's extention (if known)`

## Credits, inspiration, and references

### Articles, guides, and resources
Expand Down
9 changes: 0 additions & 9 deletions source/app.py

This file was deleted.

19 changes: 18 additions & 1 deletion source/identify_file_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@

@app.command()
def identify(files: list[str] = Argument(..., help="File paths to identify")):
"""Identifies the file type of provided files with incorrect extensions."""
"""
Identifies the file type of provided files with incorrect extensions
A bit longer description.
Args:
files (list[str]): A list of file paths to identify
Returns:
type: description
Raises:
FileNotFoundError: the file does not exist
"""

for file_path in files:
try:
with open(file_path, "rb") as f:
Expand All @@ -37,3 +52,5 @@ def identify(files: list[str] = Argument(..., help="File paths to identify")):

except FileNotFoundError:
log.error(f"Error: File not found: {file_path}")

# todo: return
2 changes: 1 addition & 1 deletion source/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def create_rich_logger():
for the rich.logging class definision
Args:
variable (type): description
none
Returns:
logger: a logger that can be formatted using rich
Expand Down
52 changes: 0 additions & 52 deletions source/zipssion.py

This file was deleted.

0 comments on commit e9e0ca4

Please sign in to comment.