Skip to content

Commit

Permalink
feat: add description to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Theryston committed Sep 6, 2022
1 parent 89832e1 commit 0163371
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiktoker",
"version": "0.0.1",
"version": "2.0.0",
"description": "tiktoker CLI",
"private": true,
"types": "build/types/types.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const load = loading({

const command: GluegunCommand = {
name: 'config',
description: 'generate inicial config',
run: async (toolbox) => {
const { print, prompt, filesystem, system } = toolbox

Expand Down
1 change: 1 addition & 0 deletions src/commands/profile/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import createProfile from '../../core/profile/create-profile'

const command: GluegunCommand = {
name: 'create',
description: 'create a new profile',
run: async (toolbox) => {
const { prompt, print, filesystem } = toolbox

Expand Down
1 change: 1 addition & 0 deletions src/commands/profile/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import listProfiles from '../../core/profile/list-profiles'

const command: GluegunCommand = {
name: 'delete',
description: 'delete a profile',
run: async (toolbox) => {
const { prompt, print, filesystem } = toolbox

Expand Down
1 change: 1 addition & 0 deletions src/commands/profile/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import listProfiles from '../../core/profile/list-profiles'

const command: GluegunCommand = {
name: 'list',
description: 'list all profiles',
run: async (toolbox) => {
const { print } = toolbox

Expand Down
5 changes: 3 additions & 2 deletions src/commands/tiktoker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { GluegunCommand } from 'gluegun'

const command: GluegunCommand = {
name: 'tiktoker',
description: 'tiktoker help',
run: async (toolbox) => {
const { print } = toolbox
const { runtime } = toolbox

print.info('Welcome to your CLI')
runtime.run('help')
},
}

Expand Down
1 change: 1 addition & 0 deletions src/commands/video/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const load = loading({

const command: GluegunCommand = {
name: 'create',
description: 'create a new video',
run: async (toolbox) => {
const { print, prompt, filesystem } = toolbox

Expand Down
1 change: 1 addition & 0 deletions src/commands/video/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import listVideos from '../../core/video/list-videos'

const command: GluegunCommand = {
name: 'delete',
description: 'delete a video',
run: async (toolbox) => {
const { prompt, print, filesystem } = toolbox

Expand Down
1 change: 1 addition & 0 deletions src/commands/video/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import listVideos from '../../core/video/list-videos'

const command: GluegunCommand = {
name: 'list',
description: 'list all videos',
run: async (toolbox) => {
const { print } = toolbox

Expand Down

0 comments on commit 0163371

Please sign in to comment.