Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 4e73be4

Browse files
myan9k8s-ci-robot
authored andcommitted
fix: cannot invoke grammy from headless mode
1 parent 706be6c commit 4e73be4

File tree

8 files changed

+7
-6
lines changed

8 files changed

+7
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/plugin-client-common/i18n/resources_en_US.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"n deleted": "{0} deleted",
2727
"with pending changes": "**with pending changes**",
2828
"with no pending changes": "**with no pending changes**",
29-
"Histogram": "Histogram",
3029
"Status Grid": "Status Grid",
3130
"No resources": "No resources",
3231
"nRows": "{0} rows",

plugins/plugin-client-common/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"@patternfly/react-core": "4.90.2",
2525
"@patternfly/react-styles": "4.7.29",
2626
"@patternfly/react-table": "4.20.15",
27-
"@supercharge/promise-pool": "1.6.1",
2827
"anser": "2.0.1",
2928
"monaco-editor": "0.23.0",
3029
"monaco-editor-webpack-plugin": "3.0.1",

plugins/plugin-client-common/src/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default async (registrar: Registrar) => {
2727
})
2828
await import(/* webpackMode: "lazy" */ './controller/alert').then(_ => _.default(registrar))
2929
await import(/* webpackMode: "lazy" */ './controller/card').then(_ => _.default(registrar))
30-
await import(/* webpackMode: "lazy" */ './controller/grammy').then(_ => _.default(registrar))
3130
await import(/* webpackMode: "lazy" */ './controller/commentary').then(_ => _.default(registrar))
3231
await import(/* webpackMode: "lazy" */ './controller/user-settings').then(_ => _.default(registrar))
3332
}

plugins/plugin-core-support/i18n/resources_en_US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"Report full version": "Report full version",
66
"helpUsageTitle": "Getting Started",
77
"helpUsageHeader": "A summary of the top-level command structure",
8+
"Histogram": "Histogram",
89
"Tab": "Tab",
910
"New Tab": "New Tab",
1011
"Created a new tab": "Created a new tab",

plugins/plugin-core-support/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"module": "mdist/index.js",
2424
"types": "mdist/index.d.ts",
2525
"dependencies": {
26+
"@supercharge/promise-pool": "1.6.1",
2627
"colors": "1.4.0",
2728
"debug": "4.3.1",
2829
"micromatch": "4.0.2",

plugins/plugin-client-common/src/controller/grammy.ts renamed to plugins/plugin-core-support/src/lib/cmds/grammy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import PromisePool from '@supercharge/promise-pool'
1919
import { GlobStats } from '@kui-shell/plugin-bash-like/fs'
2020
import { Arguments, ParsedOptions, i18n, Row, Registrar, Table, UsageModel, encodeComponent } from '@kui-shell/core'
2121

22-
const strings = i18n('plugin-client-common')
22+
const strings = i18n('plugin-core-support')
2323

2424
/**
2525
* grammy command usage
@@ -131,5 +131,5 @@ async function doHistogram(args: Arguments<Options>): Promise<Table> {
131131
*
132132
*/
133133
export default async (commandTree: Registrar) => {
134-
commandTree.listen('/grammy', doHistogram, { needsUI: true, usage, flags: { boolean: ['color', 'c'] } })
134+
commandTree.listen('/grammy', doHistogram, { usage, flags: { boolean: ['color', 'c'] } })
135135
}

plugins/plugin-core-support/src/plugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import sleep from './lib/cmds/sleep'
2929
import history from './lib/cmds/history/history'
3030
import kuiConfig from './lib/cmds/kui-config'
3131
import tabManagement from './lib/cmds/tab-management'
32+
import grammy from './lib/cmds/grammy'
3233

3334
// import updater from './lib/admin/updater'
3435

@@ -50,6 +51,7 @@ export default async (commandTree: Registrar) => {
5051
sleep(commandTree),
5152
history(commandTree),
5253
kuiConfig(commandTree),
54+
grammy(commandTree),
5355
tabManagement(commandTree)
5456
])
5557

0 commit comments

Comments
 (0)