How to use the @instructure/command-utils.warn function in @instructure/command-utils

To help you get started, we’ve selected a few @instructure/command-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-scripts / lib / utils / check-dependencies.js View on Github external
module.exports = (args = {}) => {
  warn('`check-dependencies` has been moved from \'@instructure/ui-scripts/lib/utils/check-dependencies\' to \'@instructure/ui-upgrade-scripts/lib/utils/check-dependencies\'.')
  return checkDependencies(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / commands / create-component.js View on Github external
exports.handler = async (argv) => {
  const {
    template,
    path,
    packageSource,
    name,
    values
  } = argv

  warn('This command has now been moved to `@instructure/ui-template-scripts`.')

  handleCreateComponent({
    componentTemplate: template,
    path,
    packageSource,
    name,
    values
  })
}
github instructure / instructure-ui / packages / ui-scripts / lib / commands / create-from-template.js View on Github external
exports.handler = (argv) => {
  const {
    template,
    path,
    name,
    values
  } = argv

  warn('This command has now been moved to `@instructure/ui-template-scripts`.')

  handleCreateFromTemplate({ template, path, name, values })
}
github instructure / instructure-ui / packages / ui-scripts / lib / utils / verify-package-json.js View on Github external
module.exports = function (args = {}) {
  warn('`verify-package-json` has been moved from \'@instructure/ui-scripts/lib/utils/verify-package-json\' to \'@instructure/ui-upgrade-scripts/lib/utils/verify-package-json\'.')
  verifyPackageJson(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / utils / promptContentName.js View on Github external
module.exports = function (args = {}) {
  warn('`promptContentName` has been moved from \'@instructure/ui-scripts/lib/utils/promptContentName\' to \'@instructure/ui-template-scripts/lib/utils/promptContentName\'.')
  return promptContentName(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / utils / execute-codemod.js View on Github external
module.exports = (args = {}) => {
  warn('`execute-codemod` has been moved from \'@instructure/ui-scripts/lib/utils/execute-codemod\' to \'@instructure/ui-upgrade-scripts/lib/utils/execute-codemod\'.')
  executeCodemod(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / handlers / handleCreateComponent.js View on Github external
module.exports = async (args = {}) => {
  warn('`handleCreateComponent` has been moved from \'@instructure/ui-scripts/lib/handlers/handleCreateComponent\' to \'@instructure/ui-template-scripts/lib/handlers/handleCreateComponent\'.')
  handleCreateComponent(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / utils / createFromTemplate.js View on Github external
module.exports = function (args = {}) {
  warn('`createFromTemplate` has been moved from \'@instructure/ui-scripts/lib/utils/createFromTemplate\' to \'@instructure/ui-template-scripts/lib/utils/createFromTemplate\'.')
  return createFromTemplate(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / handlers / handleCreatePackage.js View on Github external
module.exports = async (args = {}) => {
  warn('`handleCreatePackage` has been moved from \'@instructure/ui-scripts/lib/handlers/handleCreatePackage\' to \'@instructure/ui-template-scripts/lib/handlers/handleCreatePackage\'.')
  handleCreatePackage(args)
}
github instructure / instructure-ui / packages / ui-scripts / lib / handlers / handleCreateFromTemplate.js View on Github external
module.exports = async (args = {}) => {
  warn('`handleCreateFromTemplate` has been moved from \'@instructure/ui-scripts/lib/handlers/handleCreateFromTemplate\' to \'@instructure/ui-template-scripts/lib/handlers/handleCreateFromTemplate\'.')
  handleCreateFromTemplate(args)
}

@instructure/command-utils

Node CLI utilities made by Instructure Inc.

MIT
Latest version published 2 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages