Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"node": ">=18"
},
"dependencies": {
"@open-audio-stack/core": "^0.1.25",
"@open-audio-stack/core": "^0.1.37",
"cli-table3": "^0.6.5",
"commander": "^12.1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function formatOutput(result: Package[] | Package | undefined, versions?:
if (json) return JSON.stringify(result, null, 2);

const table = new CliTable3({
head: ['Id', 'Name', 'Version', 'Date', 'License', 'Tags'],
head: ['Id', 'Name', 'Version', 'Installed', 'Date', 'License', 'Tags'],
});
if (result instanceof Array) {
for (const index in result) {
Expand Down Expand Up @@ -44,6 +44,7 @@ export function formatRow(pkg: Package, version?: string) {
pkg.slug || '-',
truncateString(pkgVersion.name || '-', 40),
truncateString(versionNum || '-', 10),
pkgVersion.installed ? '✓' : '-',
truncateString(pkgVersion.date?.split('T')[0] || '-', 10),
truncateString(pkgVersion.license || '-', 10),
truncateString(pkgVersion.tags?.join(', ') || '-', 30),
Expand Down
64 changes: 32 additions & 32 deletions tests/commands/__snapshots__/filter.test.ts.snap

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions tests/commands/__snapshots__/get.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Get package 1`] = `
┌─────────────────────────┬──────────┬─────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
├─────────────────────────┼──────────┼─────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴────────────┴─────────┴───────────────────────────────┘
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ ✓ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ ✓ │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
`;

exports[`Get package 2`] = `
┌─────────────────────────┬──────────┬─────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴────────────┴─────────┴───────────────────────────────┘
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ ✓ │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
`;

exports[`Get package 3`] = `No results found`;
20 changes: 10 additions & 10 deletions tests/commands/__snapshots__/install.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Install package 1`] = `
┌─────────────────────────┬──────────┬─────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴────────────┴─────────┴───────────────────────────────┘
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.4 │ ✓ │ 2024-08-11 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
`;

exports[`Install package 2`] = `
┌─────────────────────────┬──────────┬─────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴────────────┴─────────┴───────────────────────────────┘
┌─────────────────────────┬──────────┬─────────┬───────────┬────────────┬─────────┬───────────────────────────────┐
│ Id │ Name │ Version │ Installed │ Date │ License │ Tags │
├─────────────────────────┼──────────┼─────────┼───────────┼────────────┼─────────┼───────────────────────────────┤
│ surge-synthesizer/surge │ Surge XT │ 1.3.1 │ ✓ │ 2024-03-02 │ gpl-3.0 │ Instrument, Synth, Modulation │
└─────────────────────────┴──────────┴─────────┴───────────┴────────────┴─────────┴───────────────────────────────┘
`;

exports[`Install package 3`] = `No results found`;
Loading