@iksdev/shard-cli 0.1.19 → 0.1.20
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/bin/shard.js +20 -18
- 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
|
-
|
|
23
|
-
shard login
|
|
24
|
-
shard whoami
|
|
25
|
-
shard sync
|
|
26
|
-
shard share
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
|
39
|
-
shard sync
|
|
40
|
-
shard
|
|
41
|
-
shard sync ./MonDossier --
|
|
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
|
}
|