annotate src/main/kotlin/name/blackcap/passman/HelpSubcommand.kt @ 17:4427199eb218

Make escape character RFC4180 compliant by default.
author David Barts <n5jrn@me.com>
date Sun, 05 Feb 2023 11:14:25 -0800
parents 7a74ae668665
children 07406c4af4a5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 package name.blackcap.passman
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
2
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 class HelpSubcommand(): Subcommand() {
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
4 override fun run(args: Array<String>) {
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
5 println("PassMan: a password manager")
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 println("Available subcommands:")
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
7 println("create Create a new username/password pair.")
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
8 println("delete Delete existing record.")
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
9 println("help Print this message.")
16
7a74ae668665 Add export subcommand.
David Barts <n5jrn@me.com>
parents: 15
diff changeset
10 println("export Export to CSV file.")
12
a38a2a1036c3 Add import subcommand.
David Barts <n5jrn@me.com>
parents: 11
diff changeset
11 println("import Import from CSV file.")
0
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
12 println("list List records.")
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
13 println("merge Merge passwords in from another PassMan database.")
15
0fc90892a3ae Add password subcommand.
David Barts <n5jrn@me.com>
parents: 13
diff changeset
14 println("password Change database encryption key.")
11
c69665ff37d0 Add merge subcommand (untested).
David Barts <n5jrn@me.com>
parents: 8
diff changeset
15 println("read Retrieve data from existing record.")
c69665ff37d0 Add merge subcommand (untested).
David Barts <n5jrn@me.com>
parents: 8
diff changeset
16 println("rename Rename existing record.")
c69665ff37d0 Add merge subcommand (untested).
David Barts <n5jrn@me.com>
parents: 8
diff changeset
17 println("update Update existing record.")
13
302d224bbd57 Improve help messages and csv error reportage.
David Barts <n5jrn@me.com>
parents: 12
diff changeset
18 println()
15
0fc90892a3ae Add password subcommand.
David Barts <n5jrn@me.com>
parents: 13
diff changeset
19 println("Database is ${see(DB_FILE)} .")
0
a6cfdffcaa94 Initial commit, incomplete but it runs sorta.
David Barts <n5jrn@me.com>
parents:
diff changeset
20 }
8
698c4a3d758d Some code clean-up.
David Barts <n5jrn@me.com>
parents: 0
diff changeset
21 }