package cli import ( "fmt" "os" "github.com/rwinkhart/go-boilerplate/back" "github.com/rwinkhart/libmutton/global" ) // ANSI color constants used only in this file const ( ansiVersionMeat = "\033[38;2;157;0;6m" ansiVersionOutline = "\033[38;2;131;165;152m" ) func HelpMain() { fmt.Print(back.AnsiBold + "\nMUTN | Copyright (c) 2024-2025 Randall Winkhart\n" + back.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. ` + back.AnsiBold + "Usage:" + back.AnsiReset + ` mutn [/ [argument] [option]] | [argument] ` + back.AnsiBold + "Arguments:" + back.AnsiReset + ` help Bring up this menu version Display version and license information init Set up MUTN (generates libmutton.ini) tweak Make changes to the libmutton configuration copy Copy details of an entry to your clipboard edit Edit an existing entry gen Generate a new password add Add a new entry shear Delete an existing entry sync Manually sync the entry directory ` + back.AnsiBold + "Options:" + back.AnsiReset + ` copy: password|-pw| Copy the password in an entry to your clipboard username|-u Copy the username in an entry to your clipboard totp|-t Generate and copy the TOTP token for an entry to your clipboard url|-l Copy the URL in an entry to your clipboard note|-n Copy the first note line in an entry to your clipboard menu|-m Open interactive menu to copy any combination of fields edit: password|-pw| Change the password in an entry username|-u Change the username in an entry totp|-t Change the TOTP secret in an entry url|-l Change the URL in an entry note|-n Change the note in an entry rename|-r Rename or relocate an entry gen: update|-u Generate a password for an existing entry add: password|-pw| Add a password entry note|-n Add a note entry folder|-f Add a new folder for entries ` + back.AnsiBold + "Tip 1:" + back.AnsiReset + ` You can quickly read an entry with "mutn /" ` + back.AnsiBold + "Tip 2:" + back.AnsiReset + ` Type "mutn" (no arguments/options) to view a list of saved entries ` + back.AnsiBold + "Tip 3:" + back.AnsiReset + ` Provide "add", "edit", "copy", or "gen" as the only argument to receive more specific help ` + back.AnsiBold + "Tip 4:" + back.AnsiReset + " Using \"add\", \"edit\", or \"copy\" without specifying an option (field) will default to \"password\"\n\n") os.Exit(0) } func HelpAdd() { fmt.Print(back.AnsiBold + "\nUsage:" + back.AnsiReset + ` mutn / add