package cli import ( "fmt" "github.com/rwinkhart/MUTN/src/offline" "os" ) // global constants used only in this file const ( ansiGoFuchsia = "\033[38;2;206;48;98m" ansiGoGopher = "\033[38;2;1;173;216m" ) func HelpMain() { fmt.Print(ansiBold + "\nMUTN | Copyright (c) 2024 Randall Winkhart\n" + offline.AnsiReset + ` This software exists under the MIT license; you may redistribute it under certain conditions. This program comes with absolutely no warranty; type "mutn version" for details. ` + ansiBold + "Usage:" + offline.AnsiReset + ` mutn [/ [argument] [option]] | [argument] ` + ansiBold + "Arguments:" + offline.AnsiReset + ` help/--help/-h Bring up this menu version/-v Display version and license information init Set up MUTN tweak Change configuration options add Add an entry gen Generate a new password edit Edit an existing entry copy Copy details of an entry to your clipboard shear Delete an existing entry sync Manually sync the entry directory ` + ansiBold + "Options:" + offline.AnsiReset + ` add: password/-p Add a password entry note/-n Add a note entry folder/-f Add a new folder for entries edit: rename/relocate/-r Rename or relocate an entry username/-u Change the username of an entry password/-p Change the password of an entry url/-l Change the url attached to an entry note/-n Change the note attached to an entry copy: username/-u Copy the username of an entry to your clipboard password/-p Copy the password of an entry to your clipboard url/-l Copy the url of an entry to your clipboard note/-n Copy the note of an entry to your clipboard gen: update/-u Generate a password for an existing entry ` + ansiBold + "Tip 1:" + offline.AnsiReset + ` You can quickly read an entry with "mutn /" ` + ansiBold + "Tip 2:" + offline.AnsiReset + ` Type "mutn" (no arguments/options) to view a list of saved entries ` + ansiBold + "Tip 3:" + offline.AnsiReset + " Provide \"add\", \"edit\", \"copy\", or \"gen\" as the only argument to receive more specific help\n\n") os.Exit(0) } func HelpAdd() { fmt.Print(ansiBold + "\nUsage:" + offline.AnsiReset + ` mutn / add