@iksdev/shard-cli 0.1.19 → 0.1.21

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.
Files changed (2) hide show
  1. package/bin/shard.js +20 -18
  2. package/package.json +1 -1
package/bin/shard.js CHANGED
@@ -16,30 +16,32 @@ const STATE_FILE = '.shard-sync-state.json';
16
16
  const DEFAULT_SERVER = 'https://shard-0ow4.onrender.com';
17
17
  const IGNORED_DIRS = new Set(['.git', 'node_modules']);
18
18
 
19
- function printHelp() {
20
- console.log(`Shard CLI
21
-
22
- Usage:
23
- shard login --username <name> --password <pass> [--server <url>]
24
- shard whoami [--server <url>]
25
- shard sync <folder> [--server <url>] [--dry-run] [--force] [--once] [--interval-ms <n>]
26
- shard share <file> [--server <url>] [--limits <n>] [--temps <jours>] [--upload]
19
+ function printHelp() {
20
+ console.log(`Shard CLI
21
+
22
+ Commandes:
23
+ shard login
24
+ shard whoami
25
+ shard sync
26
+ shard share
27
27
  shard logout
28
28
  shard config show
29
29
  shard config set-server <url>
30
30
 
31
- Commandes:
32
- shard login --username <name> --password <pass> [--server <url>]
33
- shard sync <folder> [--server <url>] [--dry-run] [--force] [--once] [--interval-ms <n>]
34
- shard share <file> [--server <url>] [--limits <n>] [--temps <jours>] [--upload]
35
- shard logout
31
+ Mode interactif:
32
+ La CLI pose les questions (fichier, dossier, serveur, identifiants) si tu ne passes pas d'arguments.
33
+
34
+ Options avancees (optionnelles):
35
+ login: --username <name> --password <pass> --server <url>
36
+ whoami: --server <url>
37
+ sync: <folder> --server <url> --dry-run --force --once --interval-ms <n>
38
+ share: <file> --server <url> --limits <n> --temps <jours> --upload
36
39
 
37
40
  Examples:
38
- shard login --server https://shard-0ow4.onrender.com --username admin --password secret
39
- shard sync ./MonDossier
40
- shard sync ./MonDossier --once
41
- shard sync ./MonDossier --dry-run
42
- shard share ./MonFichier.mp4 --limits 0 --temps 0
41
+ shard login
42
+ shard sync
43
+ shard share
44
+ shard sync ./MonDossier --once
43
45
  shard share ./MonFichier.mp4 --upload
44
46
  `);
45
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iksdev/shard-cli",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "CLI pour synchroniser un dossier local avec Shard",
5
5
  "bin": {
6
6
  "shard": "bin/shard.js"