@developer-ayushanand/dbgit 0.1.0-beta.1 → 0.1.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/dist/cli.js
CHANGED
|
@@ -13,11 +13,12 @@ import { mergeCommand } from './commands/merge.js';
|
|
|
13
13
|
import { doctorCommand } from './commands/doctor.js';
|
|
14
14
|
import { restoreBackupCommand } from './commands/restore-backup.js';
|
|
15
15
|
import { purgeCommand } from './commands/purge.js';
|
|
16
|
+
import packageJson from '../package.json' with { type: 'json' };
|
|
16
17
|
const program = new Command();
|
|
17
18
|
program
|
|
18
19
|
.name('dbgit')
|
|
19
20
|
.description('Git for your database schema — branch, diff, commit, rollback.')
|
|
20
|
-
.version(
|
|
21
|
+
.version(packageJson.version);
|
|
21
22
|
program
|
|
22
23
|
.command('init')
|
|
23
24
|
.description('Initialize a new DBGit repository')
|
|
@@ -100,7 +101,7 @@ program
|
|
|
100
101
|
});
|
|
101
102
|
program
|
|
102
103
|
.command('checkout <ref>')
|
|
103
|
-
.description('Switch
|
|
104
|
+
.description('Switch current branch reference without modifying database schema')
|
|
104
105
|
.action(async (ref) => {
|
|
105
106
|
try {
|
|
106
107
|
await checkoutCommand(ref);
|