Skip to content

Commit

Permalink
wip: working on adding unix-like ls support
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Aug 16, 2024
1 parent 41d6dd0 commit 163c78c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/secrets/CommandList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ class CommandList extends CommandPolykey {
});
const data = await binUtils.retryAuthentication(async (auth) => {
const data: Array<{ secretName: string }> = [];
const stream = await pkClient.rpcClient.methods.vaultsSecretsList({
const stream = await pkClient.rpcClient.methods.vaultsSecretsGetFileTree({
metadata: auth,
nameOrId: vaultName,
pattern: '*',
yieldStats: false,
yieldRoot: false,
yieldFiles: true,
yieldParents: false,
yieldDirectories: true,
});
for await (const secret of stream) {
data.push({
secretName: secret.secretName,
secretName: `${secret.path} of type ${secret.type}`,
});
}
return data;
Expand Down

0 comments on commit 163c78c

Please sign in to comment.