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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# TradeTrust (CLI)

> ⚠️ This CLI is for development work only. It is not recommended for production use.
> For production, please integrate the TrustVC library.

This CLI tool in the [TradeTrust CLI](https://github.com/TradeTrust/tradetrust-cli) repository turns .json documents into any TradeTrust verifiable documents. It applies the OpenAttestation algorithm to produce a hash of the json document and then creates a file with the data and proof of integrity.

## Installation
Expand Down
39 changes: 23 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,15 @@
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true
"browser": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jest/all",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-function-return-type": [
Expand All @@ -148,11 +138,28 @@
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"jest/prefer-expect-assertions": "off",
"jest/no-hooks": "off",
"jest/prefer-strict-equal": "off",
"array-callback-return": "error"
}
},
"overrides": [
{
"files": [
"**/*.test.ts",
"**/*.spec.ts",
"**/__tests__/**/*.ts"
],
"env": {
"jest": true
},
"extends": [
"plugin:jest/all"
],
"rules": {
"jest/prefer-expect-assertions": "off",
"jest/no-hooks": "off",
"jest/prefer-strict-equal": "off"
}
}
]
},
"prettier": {
"printWidth": 120
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env node
import yargs from "yargs";
import chalk from "chalk";
import { versionCheck } from "./implementations/utils/github-version";

// Display development warning
console.warn(chalk.yellow("\n⚠️ This CLI is for development work only. It is not recommended for production use."));
console.warn(chalk.yellow("For production, please integrate the TrustVC library.\n"));

yargs
.scriptName("tradetrust")
.commandDir("commands", { extensions: ["ts", "js"] })
Expand Down
Loading