Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: add pluginName
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent 22b0d25 commit 5597c08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface Command {
usage?: string | string[]
examples?: string[]
type?: string
pluginName?: string
flags: {[name: string]: Command.Flag}
args: {
name: string
Expand Down Expand Up @@ -81,6 +82,7 @@ export namespace Command {
id: c.id,
description: c.description,
usage: c.usage,
pluginName: c.plugin && c.plugin.name,
hidden: c.hidden,
aliases: c.aliases || [],
flags: mapValues(c.flags || {}, (flag, name) => {
Expand Down

0 comments on commit 5597c08

Please sign in to comment.