shelljs/shelljs

Refactor ShellString into a real class

Open

#651 aberto em 20 de jan. de 2017

Ver no GitHub
 (9 comments) (0 reactions) (0 assignees)JavaScript (777 forks)batch import
breakinggood first issuemedium priorityrefactor

Métricas do repositório

Stars
 (14.062 stars)
Métricas de merge de PR
 (Mesclagem média 3d 12h) (2 fundiu PRs em 30d)

Description

ShellString is a huge hack right now, and isn't really implemented as a class with a prototype. This means it can't be modified at runtime, which significantly limits what plugins can do. We should refactor it into an extendable class (preferably one which inherits all string methods).

We should also consider a ShellArray class for methods like ls(), to make implementation easier.

This blocks #486

Guia do colaborador