1
0
Fork 0
forked from jriou/coller

Several changes to clients

coller:
- Add FILENAME as positioned argument (fixes #18)
- Add -html argument to show the URL of the webpage

copier:
- Rename -w to -ask-password

both:
- Rename -b to -ask-bearer

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-08-28 12:44:36 +02:00
commit d43c645039
Signed by: jriou
GPG key ID: 9A099EDA51316854
3 changed files with 35 additions and 10 deletions

View file

@ -29,10 +29,10 @@ func handleMain() int {
verbose := flag.Bool("verbose", false, "Print more logs")
debug := flag.Bool("debug", false, "Print even more logs")
password := flag.String("password", os.Getenv("COLLER_PASSWORD"), "Password to decrypt the note")
askPassword := flag.Bool("w", false, "Read password from input")
askPassword := flag.Bool("ask-password", false, "Read password from input")
fileName := flag.String("file", "", "Write content of the note to a file")
bearer := flag.String("bearer", os.Getenv("COLLER_BEARER"), "Bearer token")
askBearer := flag.Bool("b", false, "Read bearer token from input")
askBearer := flag.Bool("ask-bearer", false, "Read bearer token from input")
flag.Parse()