appwrite-utils-cli 0.9.81 → 0.9.83

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.
package/dist/main.js CHANGED
@@ -122,12 +122,12 @@ const argv = yargs(hideBin(process.argv))
122
122
  })
123
123
  .parse();
124
124
  async function main() {
125
- const controller = new UtilsController(process.cwd());
126
125
  if (argv.it) {
127
126
  const cli = new InteractiveCLI(process.cwd());
128
127
  await cli.run();
129
128
  }
130
129
  else {
130
+ const controller = new UtilsController(process.cwd());
131
131
  await controller.init();
132
132
  if (argv.setup) {
133
133
  await setupDirsFiles(false, process.cwd());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.9.81",
4
+ "version": "0.9.83",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
package/src/main.ts CHANGED
@@ -159,12 +159,12 @@ const argv = yargs(hideBin(process.argv))
159
159
  .parse() as ParsedArgv;
160
160
 
161
161
  async function main() {
162
- const controller = new UtilsController(process.cwd());
163
-
162
+
164
163
  if (argv.it) {
165
164
  const cli = new InteractiveCLI(process.cwd());
166
165
  await cli.run();
167
166
  } else {
167
+ const controller = new UtilsController(process.cwd());
168
168
  await controller.init();
169
169
 
170
170
  if (argv.setup) {