package cli import ( "fmt" "os" "github.com/rwinkhart/MUTN/src/backend" ) // global 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(AnsiBold + "\nMUTN | Copyright (c) 2024 Randall Winkhart\n" + backend.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:" + backend.AnsiReset + ` mutn [/ [argument] [option]] | [argument] ` + AnsiBold + "Arguments:" + backend.AnsiReset + ` help Bring up this menu version Display version and license information init Set up MUTN (generates libmutton.ini) tweak Change configuration options copy Copy details of an entry to your clipboard edit Edit an existing entry gen Generate a new password add Add an entry shear Delete an existing entry sync Manually sync the entry directory ` + AnsiBold + "Options:" + backend.AnsiReset + ` copy: password|-pw| Copy the password of an entry to your clipboard username|-u Copy the username of an entry to your clipboard totp|-t Copy the TOTP code 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 edit: password|-pw| Change the password of an entry username|-u Change the username of an entry totp|-t Change the TOTP secret of an entry url|-l Change the URL attached to an entry note|-n Change the note attached to 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 ` + AnsiBold + "Tip 1:" + backend.AnsiReset + ` You can quickly read an entry with "mutn /" ` + AnsiBold + "Tip 2:" + backend.AnsiReset + ` Type "mutn" (no arguments/options) to view a list of saved entries ` + AnsiBold + "Tip 3:" + backend.AnsiReset + ` Provide "add", "edit", "copy", or "gen" as the only argument to receive more specific help ` + AnsiBold + "Tip 4:" + backend.AnsiReset + " Using \"add\", \"edit\", or \"copy\" without specifying an option (field) will default to \"password\"\n\n") os.Exit(0) } func HelpAdd() { fmt.Print(AnsiBold + "\nUsage:" + backend.AnsiReset + ` mutn / add