Skip to content

Commit

Permalink
perf(cli): Remove waiting loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Jan 3, 2024
1 parent a650594 commit 56be7bd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/cli/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
module.exports = () => {
//! 由于 require 模块比较耗时 (特别是 `@pipflow/utils`),所以增加 loading效果
// 在执行命令前清除 loading
/* // 在执行命令前清除 loading
const ora = require('ora')
const spinner = ora('Loading...').start()
const spinner = ora('Loading...').start() */

const semver = require('semver') //npm的语义版本包
const leven = require('leven') //简易的智能匹配引擎
const chalk = require('chalk') //美化命令行输出
const { Command } = require('commander') //命令行工具
const {
minimist //参数处理
} = require('@pipflow/utils')
const minimist = require('minimist') //参数处理

const { info, warn } = require('./lib/utils/logger')
const { CLI_NAME, CLI_ID, CLI_BASE_ID, CLI_CORE_ID, CLI_UTILS_ID } = require('./lib/config/constants')
Expand All @@ -30,7 +28,7 @@ module.exports = () => {
}
checkNodeVersion(pkg.engines.node, name)

spinner.stop() //停止 loading
// spinner.stop() //停止 loading

const program = new Command()
program
Expand Down

0 comments on commit 56be7bd

Please sign in to comment.