mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary - Exposes the interfaces that define the format of the response of the `/api/status` endpoint. - Moves them from `@kbn/core-status-common-internal` to `@kbn/core-status-common`. - Removes the former package, as it no longer contains anything. - Fixes some of the illegal dependencies uncovered by https://github.com/elastic/kibana/pull/199630. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
|
*/
|
|
|
|
import { run } from '@kbn/dev-cli-runner';
|
|
import { listManifestFiles, printManifest, updateManifest } from './manifest';
|
|
|
|
/**
|
|
* A CLI to manipulate Kibana package manifest files
|
|
*/
|
|
export const runKbnManifestCli = () => {
|
|
run(
|
|
async ({ log, flags }) => {
|
|
if (flags.list === 'all') {
|
|
listManifestFiles(flags, log);
|
|
} else {
|
|
if (!flags.package && !flags.plugin) {
|
|
throw new Error('You must specify the identifer of the --package or --plugin to update.');
|
|
}
|
|
await updateManifest(flags, log);
|
|
await printManifest(flags, log);
|
|
}
|
|
},
|
|
{
|
|
log: {
|
|
defaultLevel: 'info',
|
|
},
|
|
flags: {
|
|
string: ['list', 'package', 'plugin', 'set', 'unset'],
|
|
help: `
|
|
Usage: node scripts/manifest --package <packageId> --set group=platform --set visibility=private
|
|
--list all List all the manifests
|
|
--package [packageId] Select a package to update.
|
|
--plugin [pluginId] Select a plugin to update.
|
|
--set [property]=[value] Set the desired "[property]": "[value]"
|
|
--unset [property] Removes the desired "[property]: value" from the manifest
|
|
`,
|
|
},
|
|
}
|
|
);
|
|
};
|