dorky 1.1.0 → 1.2.2

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/index.js CHANGED
@@ -122,9 +122,9 @@ function pushChanges() {
122
122
  } catch (err) {
123
123
  console.log(
124
124
  "Unable to upload file " +
125
- path
126
- .join(rootFolder, path.relative(process.cwd(), file))
127
- .replace(/\\/g, "/")
125
+ path
126
+ .join(rootFolder, path.relative(process.cwd(), file))
127
+ .replace(/\\/g, "/")
128
128
  );
129
129
  console.log(err);
130
130
  }
@@ -188,15 +188,15 @@ function pushChanges() {
188
188
  } catch (err) {
189
189
  console.log(
190
190
  "Unable to upload file " +
191
- path
192
- .join(
193
- rootFolder,
194
- path.relative(
195
- process.cwd(),
196
- path.join(rootFolder.toString(), "metadata.json")
197
- )
191
+ path
192
+ .join(
193
+ rootFolder,
194
+ path.relative(
195
+ process.cwd(),
196
+ path.join(rootFolder.toString(), "metadata.json")
198
197
  )
199
- .replace(/\\/g, "/")
198
+ )
199
+ .replace(/\\/g, "/")
200
200
  );
201
201
  console.log(err);
202
202
  }
@@ -228,9 +228,9 @@ function pushChanges() {
228
228
  } catch (err) {
229
229
  console.log(
230
230
  "Unable to upload file " +
231
- path
232
- .join(rootFolder, path.relative(process.cwd(), file))
233
- .replace(/\\/g, "/")
231
+ path
232
+ .join(rootFolder, path.relative(process.cwd(), file))
233
+ .replace(/\\/g, "/")
234
234
  );
235
235
  console.log(err);
236
236
  }
@@ -268,9 +268,9 @@ function pushChanges() {
268
268
  } catch (err) {
269
269
  console.log(
270
270
  "Unable to upload file " +
271
- path
272
- .join(rootFolder, path.relative(process.cwd(), file))
273
- .replace(/\\/g, "/")
271
+ path
272
+ .join(rootFolder, path.relative(process.cwd(), file))
273
+ .replace(/\\/g, "/")
274
274
  );
275
275
  console.log(err);
276
276
  }
@@ -443,6 +443,14 @@ if (
443
443
  const args = process.argv.splice(2, 2);
444
444
 
445
445
  if (args.length == 0) {
446
+ const figlet = `
447
+ __ __
448
+ .--| .-----.----| |--.--.--.
449
+ | _ | _ | _| <| | |
450
+ |_____|_____|__| |__|__|___ |
451
+ |_____|
452
+ `;
453
+ console.log(figlet);
446
454
  const helpMessage = `Help message:\ninit\t Initializes a dorky project.\nlist\t Lists files in current root directory.\npush\t Pushes changes to S3 bucket.\npull\t Pulls changes from S3 bucket to local root folder.`;
447
455
  console.log(helpMessage);
448
456
  } else if (args.length == 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dorky",
3
- "version": "1.1.0",
3
+ "version": "1.2.2",
4
4
  "description": "DevOps Records Keeper.",
5
5
  "main": "index.js",
6
6
  "bin": {