使用gitignore.io api的命令行接口
pygi的Python项目详细描述
#pygi
<<<
<
`` ` `
` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` `
$gi vim werckercli>;.gitignore
$ cat .gitignore
### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### WerckerCLI ###
_steps
_builds
_cache
_projects
```
**pygi** also can be used as a 库也:
`` python
>;>import pygi
>;>gitIgnors=pygi.list()
>;>len(gitIgnors)
290
>;>gitIgnors[4]
'android'
>;>print(pygi.gitIgnors('vim',,'werckercli'))
### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### WerckerCLI ###
_steps
_builds
_cache
_projects
```
<<<
<
`` ` `
` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` `
` ` ` ` ` ` ` ` ` ` ` ` ` `
$gi vim werckercli>;.gitignore
$ cat .gitignore
### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### WerckerCLI ###
_steps
_builds
_cache
_projects
```
**pygi** also can be used as a 库也:
`` python
>;>import pygi
>;>gitIgnors=pygi.list()
>;>len(gitIgnors)
290
>;>gitIgnors[4]
'android'
>;>print(pygi.gitIgnors('vim',,'werckercli'))
### Vim ###
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### WerckerCLI ###
_steps
_builds
_cache
_projects
```