Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Create = &cobra.Command{ Use: "create", Short: "Create a new account", Long: `This method creates a new account secured by a password. We strongly advise to use long randomized password. **Warning:** Backup your password in a safe place. You will not be able to use the account if you lost the password. You should also [export your account](mesg-core_account_export.md) to a safe place to prevent losing access to your workflows, services and tokens.`, Example: `mesg-core account create mesg-core account create --password PASSWORD`, Run: createHandler, DisableAutoGenTag: true, }
Create a new account
View Source
var Delete = &cobra.Command{ Use: "delete", Short: "Delete an account", Long: `This method deletes an account. **Warning:** If you didn't previously [export this account](mesg-core_account_export.md), you will lost it **forever.**`, Example: `mesg-core service delete mesg-core service delete --account ACCOUNT --confirm`, Run: deleteHandler, DisableAutoGenTag: true, }
Delete a specific accounts
View Source
var Detail = &cobra.Command{ Use: "detail", Short: "Show detailed information of an account", Long: `To show the balance, previous transactions and some other information of an account`, Example: `mesg-core account detail mesg-core account detail --account ACCOUNT`, Run: detailHandler, DisableAutoGenTag: true, }
Detail one account
View Source
var Export = &cobra.Command{ Use: "export", Short: "Export an account", Long: `This method creates a file containing the information about your account. The private key of your account is encrypted with the password you choose. **Warning:** This method does **NOT** export your password. You have to manage your password yourself. You can import the backup file on any other MESG Application with the [import method](mesg-core_account_import.md).`, Example: `mesg-core account export mesg-core account export --account ACCOUNT --password PASSWORD --new-password PASSWORD --path ./PATH_TO_BACKUP_FILE`, Run: exportHandler, DisableAutoGenTag: true, }
Export an account into a json file
View Source
var Import = &cobra.Command{ Use: "import ./PATH_TO_BACKUP_FILE", Short: "Import an account from a backup file", Long: `This method imports a previously exported backup file of your account created with the [export method](mesg-core_account_export.md).`, Example: `mesg-core account import ./PATH_TO_BACKUP_FILE mesg-core account import ./PATH_TO_BACKUP_FILE --password PASSWORD --new-password PASSWORD`, Args: cobra.MinimumNArgs(1), Run: importHandler, DisableAutoGenTag: true, }
Import an account from an exported file
View Source
var List = &cobra.Command{ Use: "list", Short: "List your local accounts", Example: "mesg-core account list", Run: listHandler, DisableAutoGenTag: true, }
List all the accounts
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.