Skip to content

Commit

Permalink
Stub markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWnuk committed Oct 2, 2024
1 parent 1254d6f commit f22edc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ git clone https://github.com/JakeWnuk/ptt && cd ptt && docker build -t ptt . &&

### Usage:
```
Usage of Password Transformation Tool (ptt) version (0.3.5):
Usage of Password Transformation Tool (ptt) version (0.3.6):
ptt [options] [...]
Accepts standard input and/or additonal arguments.
Expand All @@ -63,6 +63,8 @@ These modify or filter the transformation mode.
Only output items of a certain length (does not adjust for rules). Accepts ranges separated by '-'.
-m int
Minimum numerical frequency to include in output.
-md
If Markdown format should be used for output instead.
-n int
Maximum number of items to return in output.
-o string
Expand Down
2 changes: 1 addition & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Password Transformation Tool (PTT) Usage Guide
## Version 0.3.5
## Version 0.3.6

### Table of Contents
#### Getting Started
Expand Down
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/jakewnuk/ptt/pkg/utils"
)

var version = "0.3.5"
var version = "0.3.6"
var wg sync.WaitGroup
var mutex = &sync.Mutex{}
var retain models.FileArgumentFlag
Expand Down Expand Up @@ -88,6 +88,7 @@ func main() {
verbose2 := flag.Bool("vv", false, "Show statistics output when possible.")
verbose3 := flag.Bool("vvv", false, "Show verbose statistics output when possible.")
minimum := flag.Int("m", 0, "Minimum numerical frequency to include in output.")
markDownOutput := flag.Bool("md", false, "If Markdown format should be used for output instead.")
outputVerboseMax := flag.Int("n", 0, "Maximum number of items to return in output.")
transformation := flag.String("t", "", "Transformation to apply to input.")
replacementMask := flag.String("rm", "uldsbt", "Replacement mask for transformations if applicable.")
Expand Down Expand Up @@ -238,6 +239,11 @@ func main() {

fmt.Fprintf(os.Stderr, "[*] Task complete with %d unique results.\n", len(primaryMap))

// Print in markdown if provided
if *markDownOutput {
fmt.Println("TODO")
}

// Print output to stdout
if *verbose3 {
format.PrintStatsToSTDOUT(primaryMap, *verbose3, *outputVerboseMax)
Expand Down

0 comments on commit f22edc2

Please sign in to comment.