Skip to content

Commit 72415ee

Browse files
committed
Rename "datadir init" to "datadir create"
1 parent c83416b commit 72415ee

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ The contents of this directory are:
9393

9494
To create this directory from scratch, call:
9595

96-
$ ./ssh-env datadir init
96+
$ ./ssh-env datadir create
9797

9898
You'll be asked a series of questions.
9999

100100
**Note:** When you're asked for the "passphrase" for the rsa key pair, it's highly recommended that use **a strong password** here.
101101

102-
$ ./ssh-env datadir init
102+
$ ./ssh-env datadir create
103103
Do you have an SSH key pair (in case of doubt: no)? (y/n): n
104104

105105
Who does this key pair belong to? [manski]:
@@ -311,11 +311,11 @@ As far as synchronizing is concerned, an ssh-env directory is comprised of three
311311

312312
The root directory is (usually) already version controlled under Git - so you can use Git to put it on other computers.
313313

314-
If you used `./ssh-env datadir init` to create your data directory, ssh-env gave you the option to create a Git repository for the data directory. In this case, you use Git to synchronize your ssh data between computers. On another computer you can then use this command to get your ssh data:
314+
If you used `./ssh-env datadir create` to create your data directory, ssh-env gave you the option to create a Git repository for the data directory. In this case, you use Git to synchronize your ssh data between computers. On another computer you can then use this command to get your ssh data:
315315

316316
./ssh-env datadir clone
317317

318-
*Note:* While ssh-env uses Git internally for `datadir init/clone`, you can use any other version control system you like (like Mercurial or even Subversion) to version your ssh data directory. ssh-env doesn't mind.
318+
*Note:* While ssh-env uses Git internally for `datadir create/clone`, you can use any other version control system you like (like Mercurial or even Subversion) to version your ssh data directory. ssh-env doesn't mind.
319319

320320
The third part (`./local/`) should not be synchronized. So there's nothing you need to do here.
321321

app/SshAgent.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function Add-SshKeyToRunningAgent([String] $SshPrivateKeyPath, [int] $KeyTimeToL
246246

247247
function Assert-SshAgentState([String] $SshPrivateKeyPath) {
248248
if (-Not (Test-Path $SshPrivateKeyPath)) {
249-
Write-Error "Private SSH key doesn't exist at: $SshPrivateKeyPath`nDid you run: ./ssh-env datadir init/clone ?"
249+
Write-Error "Private SSH key doesn't exist at: $SshPrivateKeyPath`nDid you run: ssh-env datadir create/clone ?"
250250
}
251251

252252
$agentConf = Get-SshAgentConfig -CreateIfNotExists

app/SshEnvApp.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function Invoke-SshEnvApp {
9393
break
9494
}
9595

96-
'init' {
96+
'create' {
9797
Initialize-DataDirFromScratch
9898
break
9999
}

app/_HELP.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Usage:
22
ssh-env [ssh] [<user>@]<ssh-server>
33
ssh-env agent (status|stop|config)
4-
ssh-env datadir (init|clone|global-install|global-uninstall)
4+
ssh-env datadir (create|clone|global-install|global-uninstall)
55
ssh-env key (create|install|check|load)
66
ssh-env (help|--help|-h)
77
ssh-env (version|--version|-v)
@@ -14,7 +14,7 @@ Commands:
1414
agent stop Stops the ssh-agent (removing any loaded private key from memory)
1515
agent config Creates configuration file for ssh-agent (per computer and not shared)
1616

17-
datadir init Creates a fresh ssh data dir (containing the ssh key pair and ssh config)
17+
datadir create Creates a fresh ssh data dir (containing the ssh key pair and ssh config)
1818
datadir clone Clones an existing ssh data dir with git
1919
datadir status Prints various information about the datadir
2020
datadir global-install Makes the data dir available to all ssh processes for the current user

0 commit comments

Comments
 (0)