Skip to content

Commit

Permalink
Renamed to croncat for easier branding
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorJTClarke committed Apr 10, 2021
1 parent b0f2c96 commit 4898d72
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NODE_ENV=development
NEAR_ENV=testnet

AGENT_ACCOUNT_ID=crond-agent
AGENT_ACCOUNT_ID=croncat-agent

WAIT_INTERVAL_MS=500
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 <command> [options]
Usage: croncat <command> [options]

Commands:
crond register <accountId> <payableAccountId> Add your agent to cron known agents
crond update <accountId> <payableAccountId> Update your agent to cron known agents
crond unregister <accountId> Account to remove from list of active agents.
crond withdraw <accountId> Withdraw all rewards earned for this account
crond status <accountId> Check agent status and balance for this account
croncat register <accountId> <payableAccountId> Add your agent to cron known agents
croncat update <accountId> <payableAccountId> Update your agent to cron known agents
croncat unregister <accountId> Account to remove from list of active agents.
croncat withdraw <accountId> Withdraw all rewards earned for this account
croncat status <accountId> Check agent status and balance for this account
```
2 changes: 1 addition & 1 deletion bin/crond → bin/croncat
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
});
})
2 changes: 1 addition & 1 deletion bin/crond.js → bin/croncat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
4 changes: 2 additions & 2 deletions cli/check-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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 = {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4898d72

Please sign in to comment.