bitbucketdc-cli 0.0.4 → 0.0.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,OAAO,QAczD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,OAAO,QAYzD"}
@@ -1,15 +1,12 @@
1
1
  import { download } from './download.js';
2
- import { metadata } from './metadata.js';
3
2
  export function registerAttachmentCommands(parent) {
4
3
  const attachment = parent
5
4
  .command('attachment')
6
5
  .description('Attachment operations')
7
6
  .addHelpText('after', `
8
7
  Examples:
9
- $ bitbucketdc repo attachment download --project PROJ --repo my-repo --id abc123 --output ./file.png
10
- $ bitbucketdc repo attachment metadata --project PROJ --repo my-repo --id abc123
8
+ $ bitbucketdc repo attachment download --project PROJ --repo my-repo --id 706 --output ./image.png
11
9
  `);
12
10
  download(attachment);
13
- metadata(attachment);
14
11
  }
15
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,UAAU,0BAA0B,CAAC,MAAe;IACxD,MAAM,UAAU,GAAG,MAAM;SACtB,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,uBAAuB,CAAC;SACpC,WAAW,CACV,OAAO,EACP;;;;CAIL,CACI,CAAC;IACJ,QAAQ,CAAC,UAAU,CAAC,CAAC;IACrB,QAAQ,CAAC,UAAU,CAAC,CAAC;AACvB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,UAAU,0BAA0B,CAAC,MAAe;IACxD,MAAM,UAAU,GAAG,MAAM;SACtB,OAAO,CAAC,YAAY,CAAC;SACrB,WAAW,CAAC,uBAAuB,CAAC;SACpC,WAAW,CACV,OAAO,EACP;;;CAGL,CACI,CAAC;IACJ,QAAQ,CAAC,UAAU,CAAC,CAAC;AACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitbucketdc-cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "publish": true,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,8 +21,8 @@
21
21
  "tsx": "^4.19.2",
22
22
  "typescript": "^5.7.2",
23
23
  "vitest": "^4.0.16",
24
- "config-eslint": "0.0.0",
25
- "config-typescript": "0.0.0"
24
+ "config-typescript": "0.0.0",
25
+ "config-eslint": "0.0.0"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=22.0.0"
@@ -1,3 +0,0 @@
1
- import { Command } from 'commander';
2
- export declare function metadata(parent: Command): void;
3
- //# sourceMappingURL=metadata.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,QAwBvC"}
@@ -1,26 +0,0 @@
1
- import { getClient } from '../../../utils/client.js';
2
- import { output, handleError } from '../../../utils/output.js';
3
- export function metadata(parent) {
4
- parent
5
- .command('metadata')
6
- .description('Get metadata for a repository attachment')
7
- .requiredOption('--project <key>', 'Project key')
8
- .requiredOption('--repo <slug>', 'Repository slug')
9
- .requiredOption('--id <attachmentId>', 'Attachment ID')
10
- .addHelpText('after', '\nExamples:\n bitbucketdc repo attachment metadata --project PROJ --repo my-repo --id abc123')
11
- .action(async (opts) => {
12
- try {
13
- const client = getClient();
14
- const result = await client.repositories.getAttachmentMetadata({
15
- projectKey: opts.project,
16
- repositorySlug: opts.repo,
17
- attachmentId: opts.id,
18
- });
19
- output(result);
20
- }
21
- catch (err) {
22
- handleError(err);
23
- }
24
- });
25
- }
26
- //# sourceMappingURL=metadata.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../src/commands/repo/attachment/metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,UAAU,QAAQ,CAAC,MAAe;IACtC,MAAM;SACH,OAAO,CAAC,UAAU,CAAC;SACnB,WAAW,CAAC,0CAA0C,CAAC;SACvD,cAAc,CAAC,iBAAiB,EAAE,aAAa,CAAC;SAChD,cAAc,CAAC,eAAe,EAAE,iBAAiB,CAAC;SAClD,cAAc,CAAC,qBAAqB,EAAE,eAAe,CAAC;SACtD,WAAW,CACV,OAAO,EACP,+FAA+F,CAChG;SACA,MAAM,CAAC,KAAK,EAAE,IAAmD,EAAE,EAAE;QACpE,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;YAC3B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,qBAAqB,CAAC;gBAC7D,UAAU,EAAE,IAAI,CAAC,OAAO;gBACxB,cAAc,EAAE,IAAI,CAAC,IAAI;gBACzB,YAAY,EAAE,IAAI,CAAC,EAAE;aACtB,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,WAAW,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}