@@ -62,7 +62,7 @@ async function migrate ({ repoPath, migrations, to, dry, revertOk }) {
62
62
} else if ( revertOk ) {
63
63
await migrator . revert ( repoPath , to , options )
64
64
} else {
65
- throw new Error ( ' The migration would require reversion of the repo, but you have not allowed it as \ '--revert-ok\' is not present.' )
65
+ throw new Error ( ` The migration would revert the repo version from ${ version } to ${ to } . To revert you must supply '--revert-ok'.` )
66
66
}
67
67
}
68
68
@@ -77,9 +77,9 @@ async function status ({ repoPath, migrations }) {
77
77
const version = await repoVersion . getVersion ( repoPath )
78
78
const lastMigrationVersion = migrator . getLatestMigrationVersion ( migrations )
79
79
const statusString =
80
- version < lastMigrationVersion ? chalk . yellow ( 'There are migrations to be applied! ' ) : chalk . green ( 'Nothing to migrate! ' )
80
+ version < lastMigrationVersion ? chalk . yellow ( 'Repo is out of date ' ) : chalk . green ( 'Nothing to migrate' )
81
81
82
- return `${ statusString } \nCurrent repo version: ${ version } \nLast migration's version: ${ lastMigrationVersion } `
82
+ return `${ statusString } \nCurrent repo version: ${ version } \nLatest migration version: ${ lastMigrationVersion } `
83
83
}
84
84
85
85
async function getAuthor ( ) {
@@ -127,21 +127,21 @@ module.exports = {
127
127
handler : asyncClosure ( migrate ) ,
128
128
builder : yargv => yargv
129
129
. option ( 'to' , {
130
- describe : 'Specify to which version should be repo migrated to' ,
130
+ describe : 'Target version to migrate repo to' ,
131
131
type : 'number'
132
132
} )
133
133
. option ( 'dry' , {
134
- describe : 'Only displays what migrations will be reverted' ,
134
+ describe : `Output migration results but don't actually perform migration` ,
135
135
type : 'boolean'
136
136
} )
137
137
. option ( 'revert-ok' , {
138
- describe : 'Allows to do backward migration, if the specific version is lower the current version of repository ' ,
138
+ describe : 'Allow migrating to a lower version (reverting) ' ,
139
139
type : 'boolean'
140
140
} )
141
141
} ,
142
142
status : {
143
143
command : 'status' ,
144
- describe : 'Display status of IPFS repo' ,
144
+ describe : 'Display migration status of IPFS repo' ,
145
145
handler : asyncClosure ( status )
146
146
} ,
147
147
add : {
0 commit comments