Skip to content

Commit 0d0a855

Browse files
kanadguptaerunion
andauthored
chore: renaming src/cmds to src/commands (#1070)
## 🧰 Changes recreating @erunion's work in #1069: > This is a super minor addendum to the oclif work going on in #1068 but I've renamed our `src/cmds` directory to `src/commands` as when you run `oclif generate command <command name>` that's the directory it wants to place a new command into. > > We could _probably_ configure `src/cmds` somehow to be the place it looks but I don't see anything in their [config docs](https://oclif.io/docs/config) about it. Co-authored-by: Jon Ursenbach <[email protected]>
1 parent ff72a9d commit 0d0a855

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+53
-53
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

__tests__/cmds/categories/create.test.ts renamed to __tests__/commands/categories/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nock from 'nock';
22
import { describe, beforeAll, afterEach, it, expect } from 'vitest';
33

4-
import Command from '../../../src/cmds/categories/create.js';
4+
import Command from '../../../src/commands/categories/create.js';
55
import getAPIMock, { getAPIMockWithVersionHeader } from '../../helpers/get-api-mock.js';
66
import { runCommand } from '../../helpers/setup-oclif-config.js';
77

__tests__/cmds/categories/index.test.ts renamed to __tests__/commands/categories/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import nock from 'nock';
22
import { describe, beforeAll, afterEach, it, expect } from 'vitest';
33

4-
import Command from '../../../src/cmds/categories/index.js';
4+
import Command from '../../../src/commands/categories/index.js';
55
import getAPIMock, { getAPIMockWithVersionHeader } from '../../helpers/get-api-mock.js';
66
import { runCommand } from '../../helpers/setup-oclif-config.js';
77

__tests__/cmds/changelogs/index.test.ts renamed to __tests__/commands/changelogs/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import frontMatter from 'gray-matter';
66
import nock from 'nock';
77
import { describe, beforeAll, afterAll, beforeEach, it, expect } from 'vitest';
88

9-
import Command from '../../../src/cmds/changelogs.js';
9+
import Command from '../../../src/commands/changelogs.js';
1010
import APIError from '../../../src/lib/apiError.js';
1111
import getAPIMock from '../../helpers/get-api-mock.js';
1212
import hashFileContents from '../../helpers/hash-file-contents.js';

__tests__/cmds/changelogs/single.test.ts renamed to __tests__/commands/changelogs/single.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import frontMatter from 'gray-matter';
66
import nock from 'nock';
77
import { describe, beforeAll, afterAll, beforeEach, it, expect } from 'vitest';
88

9-
import Command from '../../../src/cmds/changelogs.js';
9+
import Command from '../../../src/commands/changelogs.js';
1010
import APIError from '../../../src/lib/apiError.js';
1111
import getAPIMock from '../../helpers/get-api-mock.js';
1212
import hashFileContents from '../../helpers/hash-file-contents.js';

__tests__/cmds/custompages/index.test.ts renamed to __tests__/commands/custompages/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import frontMatter from 'gray-matter';
66
import nock from 'nock';
77
import { describe, beforeAll, afterAll, beforeEach, it, expect } from 'vitest';
88

9-
import Command from '../../../src/cmds/custompages.js';
9+
import Command from '../../../src/commands/custompages.js';
1010
import APIError from '../../../src/lib/apiError.js';
1111
import getAPIMock from '../../helpers/get-api-mock.js';
1212
import hashFileContents from '../../helpers/hash-file-contents.js';

__tests__/cmds/custompages/single.test.ts renamed to __tests__/commands/custompages/single.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import frontMatter from 'gray-matter';
66
import nock from 'nock';
77
import { describe, beforeAll, afterAll, beforeEach, it, expect } from 'vitest';
88

9-
import Command from '../../../src/cmds/custompages.js';
9+
import Command from '../../../src/commands/custompages.js';
1010
import APIError from '../../../src/lib/apiError.js';
1111
import getAPIMock from '../../helpers/get-api-mock.js';
1212
import hashFileContents from '../../helpers/hash-file-contents.js';

__tests__/cmds/docs/index.test.ts renamed to __tests__/commands/docs/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import nock from 'nock';
1010
import prompts from 'prompts';
1111
import { describe, beforeAll, afterAll, beforeEach, afterEach, it, expect, vi, type MockInstance } from 'vitest';
1212

13-
import Command from '../../../src/cmds/docs/index.js';
13+
import Command from '../../../src/commands/docs/index.js';
1414
import APIError from '../../../src/lib/apiError.js';
1515
import getAPIMock, { getAPIMockWithVersionHeader } from '../../helpers/get-api-mock.js';
1616
import { after, before } from '../../helpers/get-gha-setup.js';

__tests__/cmds/docs/multiple.test.ts renamed to __tests__/commands/docs/multiple.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import frontMatter from 'gray-matter';
55
import nock from 'nock';
66
import { describe, beforeAll, afterAll, it, expect } from 'vitest';
77

8-
import Command from '../../../src/cmds/docs/index.js';
8+
import Command from '../../../src/commands/docs/index.js';
99
import getAPIMock, { getAPIMockWithVersionHeader } from '../../helpers/get-api-mock.js';
1010
import hashFileContents from '../../helpers/hash-file-contents.js';
1111
import { runCommand } from '../../helpers/setup-oclif-config.js';

0 commit comments

Comments
 (0)