MCPcopy Index your code
hub / github.com/borakasmer/pwd-cli

github.com/borakasmer/pwd-cli @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
9 symbols 19 edges 2 files 4 documented · 44%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

pwd-cli

With this CLI Tool, you can generate your own password with specific parameters. You can get custom password with "-s 7, -n 3, -c -x" flags.

🍎This is Custom Password CLI. In every request, generated a new random password. If you don't set any parameters, you will get 8 length lowercase string password.

NetflixGithub

Flags:

:tv:pwd-cli
pwd-cli -s 8 -n 3 -c -x
  • -s, --str int Length of string characters in Password
  • -n, --num int Length of number characters in Password
  • -h, --help Help for pwd-cli
  • -c, --capital bool Is there any capital letter ?
  • -x, --symbol bool Is there any symbol letter ? It's Length is allways => "len(str)/3 + 1"

xflag

Default Command: "pwd-cli"

Example Usage:

Usage: pwd-cli [flags]

  • "pwd-cli -s 8 -n 3 -c"
  • "pwd-cli -s 10 -c -x"
  • "pwd-cli -n 6"
  • xflag
  • "pwd-cli --str 6 --num 2 --capital --symbol"
  • "pwd-cli" => default: 'pwd-cli -s 8 -n 0 -x 0 -c 0'

-c flag gets "true", if there is "-c" flag. If there is no -c flag, -c flag gets "false" value.

-s flag gets default 8 value.

-x flag means put symbol in Password. Default symbol length formule is => "len(string)/3+1"

How to install pwd-cli (Random Password Generator):

go install github.com/borakasmer/pwd-cli@latest

🔴Important: You need Go program package to install pwd-cli => Go Downloads

  1. "go env" With the command "GOPATH" and "GOROOT" folders of GO can be seen.
  2. On Mac after "go install ..." the "go/bin/pwd-cli" file under GOPATH => should be copied under "go/bin/" folder under GOROOT.
  3. In Windows, there is no need to further action :white_check_mark:

FRJfHssXEAAqNsP :green_book: Extra Detail


  • "-s 10" The Length of String Characters in Password is 10 and none of them is Capital. The default value is 8.
  • "-n 7" => The Length of Number Characters in Password is 7
  • "-s 5 -c" => The String Length of Password is 5 and some of them are Capital!
  • "-s 6 -x" => The String Length of Password is 6 and (6/3+1) =>3 characters are Symbol! Total length of Password is 9
  • "pwd-cli" command => By default it means "pwd-cli --str 8 --num 0". And there is no Capital letter in the Password.

Core symbols most depended-on inside this repo

getRandomString
called by 4
cmd/root.go
getRandomNumber
called by 3
cmd/root.go
checkHasCapital
called by 3
cmd/root.go
Execute
called by 1
cmd/root.go
generatePassword
called by 1
cmd/root.go
getRandomSymbol
called by 1
cmd/root.go
main
called by 0
main.go
init
called by 0
cmd/root.go

Shape

Function 8
Struct 1

Languages

Go100%

Modules by API surface

cmd/root.go8 symbols
main.go1 symbols

For agents

$ claude mcp add pwd-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact