<commit_before>import program from 'commander'
import { join } from 'path'
import sagui from './index'
import { InvalidUsage } from './index'
import { logError } from './util/log'


const env = {
  projectPath: process.cwd(),
  saguiPath: join(process.cwd(), 'node_modules/sagui')
}


program.command('develop')
  .description('Run development environment')
  .action(function (options) {
    sagui.develop(env, options)
  })


program.command('test')
  .description('Run tests')
  .option('-w, --watch', 'Run tests on any file change')
  .action(function (options) {
    sagui.test(env, options)
  })


program.command('install')
  .description('Install or update sagui in the current project')
  .action(function (options) {
    sagui.install(env, options)
  })


export default function cli (argv) {<commit_msg>Logs successful install<commit_after>import program from 'commander'
import { join } from 'path'
import sagui from './index'
import { InvalidUsage } from './index'
import { logError, log } from './util/log'


const env = {
  projectPath: process.cwd(),
  saguiPath: join(process.cwd(), 'node_modules/sagui')
}


program.command('develop')
  .description('Run development environment')
  .action(function (options) {
    sagui.develop(env, options)
  })


program.command('test')
  .description('Run tests')
  .option('-w, --watch', 'Run tests on any file change')
  .action(function (options) {
    sagui.test(env, options)
  })


program.command('install')
  .description('Install or update sagui in the current project')
  .action(function (options) {
    sagui.install(env, options)
    log('installed in the project')
  })


export default function cli (argv) {
{'fraction_non_alphanumeric': 0.148302561048243, 'fraction_numerical': 0.0, 'mean_word_length': 4.217391304347826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4248404', 'n_tokens_mistral': 530, 'n_tokens_neox': 526, 'n_words': 143}