Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: use kebab casing #59

Merged
merged 2 commits into from
Jul 23, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ describe('crypto-cli', () => {
});
});

describe('with `--priceChange, --pc`', () => {
describe('with `--price-change, --pc`', () => {
describe('with a valid coin name', () => {
it('returns the price change percentage', async () => {
const results = await execa(CLI, [
'--price',
'bitcoin',
'--priceChange'
'--price-change'
]);

assert.include(results.stdout, 'Bitcoin: $');
Expand Down Expand Up @@ -160,13 +160,13 @@ describe('crypto-cli', () => {
});
});

describe('with `--athChange`', () => {
describe('with `--ath-change`', () => {
describe('with a valid coin name', () => {
it('returns the percentage from the all time high price', async () => {
const results = await execa(CLI, [
'--price',
'bitcoin',
'--athChange'
'--ath-change'
]);

assert.include(results.stdout, 'Bitcoin: $');
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ const cli = meow(

Options:
--price, --p - coin name
--priceChange, --pc - coin price change (%) in the past 24 hours
--price-change, --pc - coin price change (%) in the past 24 hours
--volume, --v - coin volume in the past 24 hours
--high - highest price sold in the past 24 hours
--low - lowest price sold in the past 24 hours
--ath - coin all time high price
--athChange, --athc - percent price change from ATH
--ath-change, --athc - percent price change from ATH
--version - current version of the crypto-cli tool
--save - export all coin data to CSV and/or JSON

Expand Down