Skip to content

Instantly share code, notes, and snippets.

@BrianLitwin
Last active February 27, 2019 22:34
Show Gist options
  • Save BrianLitwin/bbd72d051a13fc56a1ecd5bce1b75af3 to your computer and use it in GitHub Desktop.
Save BrianLitwin/bbd72d051a13fc56a1ecd5bce1b75af3 to your computer and use it in GitHub Desktop.
function usage(print: (string) => void): void {
print(
dedent`\
Arguments:
--all
remove the entire $SOURCECRED_DIRECTORY
--cache
remove only the cache directory
--help
Show this help message and exit, as 'sourcecred help clear'.
Environment variables:
SOURCECRED_DIRECTORY
Directory owned by SourceCred, in which data, caches,
registries, etc. are stored. Optional: defaults to a
directory 'sourcecred' under your OS's temporary directory;
namely:
${Common.defaultSourcecredDirectory()}
`.trimRight()
);
}
@BrianLitwin
Copy link
Author

is their a test case for having the 'wrong' github token?

test cases:

  • that it removes the correct files
  • that help is return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment