api/shell translated to pt-BR
This commit is contained in:
parent
a3a9bbb979
commit
244e184b7e
1 changed files with 43 additions and 0 deletions
43
docs-translations/pt-BR/api/shell.md
Normal file
43
docs-translations/pt-BR/api/shell.md
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# shell
|
||||||
|
|
||||||
|
O módulo `shell` fornece funções relacionadas intereções com o OS do usuário.
|
||||||
|
|
||||||
|
Um exemplo para abrir uma URL no browser padrão do usuário:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var shell = require('shell');
|
||||||
|
shell.openExternal('https://github.com');
|
||||||
|
```
|
||||||
|
|
||||||
|
## Métodos
|
||||||
|
|
||||||
|
O módulo `shell` tem os seguintes métodos:
|
||||||
|
|
||||||
|
### `shell.showItemInFolder(fullPath)`
|
||||||
|
|
||||||
|
* `fullPath` String
|
||||||
|
|
||||||
|
Exibe o arquivo no gerenciador de arquivos padrão do sistema. Se possivel, seleciona o arquivo automaticamente.
|
||||||
|
|
||||||
|
### `shell.openItem(fullPath)`
|
||||||
|
|
||||||
|
* `fullPath` String
|
||||||
|
|
||||||
|
Abre o arquivo em seu programa padrão.
|
||||||
|
|
||||||
|
### `shell.openExternal(url)`
|
||||||
|
|
||||||
|
* `url` String
|
||||||
|
|
||||||
|
Abre o arquivo seguido de um protocol em seu programa padrão. (Por
|
||||||
|
exemplo, mailto:foo@bar.com.)
|
||||||
|
|
||||||
|
### `shell.moveItemToTrash(fullPath)`
|
||||||
|
|
||||||
|
* `fullPath` String
|
||||||
|
|
||||||
|
Move o arquivo para a lixeira e retorna um boolean com o resultado da operação.
|
||||||
|
|
||||||
|
### `shell.beep()`
|
||||||
|
|
||||||
|
Toca um som beep.
|
Loading…
Add table
Add a link
Reference in a new issue