Functions§
- confirmar_
clear - Asks for interactive confirmation before clearing all keys.
- emitir_
ndjson - Emite um evento NDJSON (uma linha JSON) para stdout.
- exibir_
aviso_ formato_ chave - Displays a warning when the key does not match the expected
ctx7sk-format. - exibir_
bibliotecas_ formatado - Prints the list of libraries returned by the search endpoint.
- exibir_
caminho_ config - Prints a file path to stdout.
- exibir_
chave_ adicionada - Prints the success message for
keys add. - exibir_
chave_ exportada - Prints a key in
CONTEXT7_API=<value>format to stdout. - exibir_
chave_ invalida_ vazia - Displays an error when the user tries to add an empty API key.
- exibir_
chave_ ja_ existia - Prints the warning message when a key already exists (dedupe).
- exibir_
chave_ removida - Prints the success message for
keys remove. - exibir_
chaves_ mascaradas - Prints all stored keys with 1-based indices and masked values.
- exibir_
chaves_ removidas - Prints the success message for
keys clear. - exibir_
dica_ biblioteca_ nao_ encontrada - Prints a user-friendly hint when the requested library was not found.
- exibir_
documentacao_ formatada - Prints structured documentation from the docs endpoint.
- exibir_
importacao_ concluida - Prints the success message for
keys import. - exibir_
indice_ invalido - Prints an invalid index error.
- exibir_
json_ array_ vazio - Prints an empty JSON array
[]to stdout. - exibir_
json_ bruto - Prints a raw JSON string to stdout.
- exibir_
json_ resultados - Prints raw JSON results to stdout (used by Library and Docs JSON mode).
- exibir_
nenhuma_ chave - Prints the “no keys stored” hint message.
- exibir_
nenhuma_ chave_ para_ remover - Prints the “no keys to remove” message.
- exibir_
operacao_ cancelada - Prints the cancellation message for
keys clear. - exibir_
texto_ plano - Prints plain text to stdout (used by Docs text mode).
- exibir_
xdg_ nao_ suportado - Prints an “XDG not supported” error for
keys path. - formatar_
added_ at_ display - Formata uma string RFC3339 para exibição compacta:
YYYY-MM-DD HH:MM:SS.