From 4898d7207c4c5db6a934d55e58dab430851bbe22 Mon Sep 17 00:00:00 2001 From: trevorjtclarke Date: Sat, 10 Apr 2021 14:23:27 -0700 Subject: [PATCH] Renamed to croncat for easier branding --- .env.example | 2 +- README.md | 22 +++++++++++----------- bin/{crond => croncat} | 2 +- bin/{crond.js => croncat.js} | 2 +- cli/check-version.js | 4 ++-- package.json | 12 ++++++------ src/actions.js | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) rename bin/{crond => croncat} (92%) rename bin/{crond.js => croncat.js} (99%) diff --git a/.env.example b/.env.example index f5c7296..392fdd5 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ NODE_ENV=development NEAR_ENV=testnet -AGENT_ACCOUNT_ID=crond-agent +AGENT_ACCOUNT_ID=croncat-agent WAIT_INTERVAL_MS=500 \ No newline at end of file diff --git a/README.md b/README.md index 5542981..8545846 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# Crond JS & CLI +# croncat JS & CLI -Crond CLI is a Node.js application that relies on [`near-api-js`](https://github.com/near/near-api-js) to generate secure keys, connect to the NEAR platform and send transactions to the network on your behalf. +croncat CLI is a Node.js application that relies on [`near-api-js`](https://github.com/near/near-api-js) to generate secure keys, connect to the NEAR platform and send transactions to the network on your behalf. -> note that **Node.js version 10+** is required to run Crond CLI +> note that **Node.js version 10+** is required to run croncat CLI ## Docker Installation & Setup @@ -11,20 +11,20 @@ TBD ## CLI Installation ```bash -npm install -g crond-js +npm install -g croncat ``` ### Commands -For a list of up-to-date commands, run `crond --help` in your terminal. +For a list of up-to-date commands, run `croncat --help` in your terminal. ```bash -Usage: crond [options] +Usage: croncat [options] Commands: - crond register Add your agent to cron known agents - crond update Update your agent to cron known agents - crond unregister Account to remove from list of active agents. - crond withdraw Withdraw all rewards earned for this account - crond status Check agent status and balance for this account + croncat register Add your agent to cron known agents + croncat update Update your agent to cron known agents + croncat unregister Account to remove from list of active agents. + croncat withdraw Withdraw all rewards earned for this account + croncat status Check agent status and balance for this account ``` \ No newline at end of file diff --git a/bin/crond b/bin/croncat similarity index 92% rename from bin/crond rename to bin/croncat index 6f4921e..0001480 100755 --- a/bin/crond +++ b/bin/croncat @@ -12,7 +12,7 @@ require('v8flags')((e, flags) => { if (ready) { // Need to filter out '--no-respawning' to avoid yargs complaining about it process.argv = process.argv.filter(arg => arg != '--no-respawning') - require('./crond.js') + require('./croncat.js') } }); }) diff --git a/bin/crond.js b/bin/croncat.js similarity index 99% rename from bin/crond.js rename to bin/croncat.js index bc86f3e..9826a8e 100644 --- a/bin/crond.js +++ b/bin/croncat.js @@ -86,7 +86,7 @@ const status = { const config = getConfig(process.env.NODE_ENV || 'development') yargs // eslint-disable-line .strict() - .scriptName('crond') + .scriptName('croncat') .middleware(require('../cli/check-version')) .middleware(require('../cli/print-options')) .option('verbose', { diff --git a/cli/check-version.js b/cli/check-version.js index 0e82ed7..8ccdb57 100644 --- a/cli/check-version.js +++ b/cli/check-version.js @@ -11,7 +11,7 @@ const isCI = require('is-ci'); // avoid output if running in CI server const UPDATE_CHECK_INTERVAL_SECONDS = 1; /** - check the current version of CROND CLI against latest as published on npm + check the current version of croncat CLI against latest as published on npm */ module.exports = async function checkVersion() { const pkg = require('../package.json'); @@ -26,7 +26,7 @@ module.exports = async function checkVersion() { const { type: diff, current, latest } = notifier.update; const update = normalizePhrasingOf(diff); const updateCommand = '{updateCommand}'; - const message = chalk`CROND CLI has a ${update} available {dim ${current}} → {green ${latest}} + const message = chalk`croncat CLI has a ${update} available {dim ${current}} → {green ${latest}} Run {cyan ${updateCommand}} to avoid unexpected behavior`; const boxenOpts = { diff --git a/package.json b/package.json index 00a3e13..eb53ea1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "crond-js", + "name": "croncat", "version": "1.0.0", - "description": "Cron.near CLI and Agent Runner", + "description": "cron.cat CLI and Agent Runner", "main": "src/index.js", "scripts": { "build": "babel src -d dist", @@ -11,11 +11,11 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "bin": { - "crond": "bin/crond" + "croncat": "bin/croncat" }, "repository": { "type": "git", - "url": "git+https://github.com/Cron-Near/crond-js.git" + "url": "git+https://github.com/Cron-Near/croncat.git" }, "keywords": [ "Cron", @@ -25,9 +25,9 @@ "author": "@trevorjtclarke", "license": "MIT", "bugs": { - "url": "https://github.com/Cron-Near/crond-js/issues" + "url": "https://github.com/Cron-Near/croncat/issues" }, - "homepage": "https://github.com/Cron-Near/crond-js#readme", + "homepage": "https://github.com/Cron-Near/croncat#readme", "dependencies": { "big.js": "^6.0.3", "chalk": "^4.1.0", diff --git a/src/actions.js b/src/actions.js index e189804..11ea00e 100644 --- a/src/actions.js +++ b/src/actions.js @@ -8,7 +8,7 @@ import chalk from 'chalk' const log = console.log export const env = process.env.NODE_ENV || 'development' export const WAIT_INTERVAL_MS = process.env.WAIT_INTERVAL_MS || 500 -export const AGENT_ACCOUNT_ID = process.env.AGENT_ACCOUNT_ID || 'crond-agent' +export const AGENT_ACCOUNT_ID = process.env.AGENT_ACCOUNT_ID || 'croncat-agent' export const BASE_GAS_FEE = 300000000000000 export const BASE_ATTACHED_PAYMENT = 0