@nightowne/tas-cli 1.1.0 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +8 -0
  2. package/package.json +3 -3
  3. package/src/cli.js +3 -3
package/README.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # TAS — Telegram as Storage
2
2
 
3
+ [![CI](https://github.com/ixchio/tas/actions/workflows/ci.yml/badge.svg)](https://github.com/ixchio/tas/actions/workflows/ci.yml)
4
+ [![npm](https://img.shields.io/npm/v/@nightowne/tas-cli)](https://www.npmjs.com/package/@nightowne/tas-cli)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ <p align="center">
8
+ <img src="assets/demo.gif" alt="TAS Demo" width="600">
9
+ </p>
10
+
3
11
  A CLI tool that uses your Telegram bot as encrypted file storage. Files are compressed, encrypted locally, then uploaded to your private bot chat.
4
12
 
5
13
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightowne/tas-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "📦 Telegram as Storage - Free encrypted cloud storage via Telegram. Mount Telegram as a folder!",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "start": "node src/cli.js",
12
12
  "init": "node src/cli.js init",
13
- "test": "node --test tests/",
13
+ "test": "node --test tests/*.test.js",
14
14
  "prepublishOnly": "npm test"
15
15
  },
16
16
  "keywords": [
@@ -54,4 +54,4 @@
54
54
  "engines": {
55
55
  "node": ">=18.0.0"
56
56
  }
57
- }
57
+ }
package/src/cli.js CHANGED
@@ -218,10 +218,10 @@ program
218
218
 
219
219
  // ============== PULL COMMAND ==============
220
220
  program
221
- .command('pull <identifier>')
221
+ .command('pull <identifier> [output]')
222
222
  .description('Download a file from Telegram storage (by filename or hash)')
223
223
  .option('-o, --output <path>', 'Output path for the file')
224
- .action(async (identifier, options) => {
224
+ .action(async (identifier, output, options) => {
225
225
  const spinner = ora('Looking up file...').start();
226
226
 
227
227
  try {
@@ -268,7 +268,7 @@ program
268
268
  const { ProgressBar } = await import('./utils/progress.js');
269
269
  let progressBar = null;
270
270
 
271
- const outputPath = options.output || fileRecord.filename;
271
+ const outputPath = output || options.output || fileRecord.filename;
272
272
  await retrieveFile(fileRecord, {
273
273
  password,
274
274
  dataDir: DATA_DIR,