src/commands/logs.js
/**
   * Trim the logs cache to a the number of entries defined by user argument
   */
Trim the logs cache to a the number of entries defined by user argument
Trim the logs cache to a the number of entries defined by user argument
pruneLogs() {
    const {flags: {history}} = this.parse(LogsCommand)
    if (this.logs.length > history) {
      this.logs = this.logs.slice(this.logs.length - history)
    }
  }
pruneLogs ( ) { const { flags : { history } } = this . parse ( LogsCommand ) if ( this . logs . length > history ) { this . logs = this . logs . slice ( this . logs . length - history ) } }
Trim the logs cache to a the number of entries defined by user argument
Trim the logs cache to a the number of entries defined by user argument