chid 0.1.6.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/CONTRIBUTING.md +75 -1
- data/Gemfile.lock +23 -36
- data/README.md +129 -79
- data/bin/chid +2 -25
- data/chid.gemspec +0 -6
- data/lib/chid.rb +0 -66
- data/lib/chid/chid_config.rb +4 -81
- data/lib/chid/commands/config.rb +48 -0
- data/lib/chid/commands/currency/convert.rb +50 -0
- data/lib/chid/commands/currency/list.rb +34 -0
- data/lib/chid/commands/currency/now.rb +47 -0
- data/lib/chid/commands/gitflow/commit.rb +0 -1
- data/lib/chid/commands/github.rb +40 -0
- data/lib/chid/commands/init.rb +1 -2
- data/lib/chid/commands/install.rb +1 -0
- data/lib/chid/commands/installs/dotfile.rb +1 -1
- data/lib/chid/commands/installs/node.rb +2 -2
- data/lib/chid/commands/installs/postgres.rb +2 -2
- data/lib/chid/commands/installs/rvm.rb +2 -2
- data/lib/chid/commands/installs/vim.rb +2 -2
- data/lib/chid/version.rb +1 -1
- data/spec/lib/chid/commands/init_spec.rb +4 -2
- data/tasks/install/yadr_dotfiles.rake +1 -0
- data/tasks/run/postgres.rake +1 -0
- data/tasks/update/os.rake +1 -0
- metadata +7 -52
- data/#README.md# +0 -222
- data/Rakefile +0 -18
- data/lib/chid/yandex_translate_api.rb +0 -39
- data/tasks/chid/config.rake +0 -5
- data/tasks/chid/init.rake +0 -19
- data/tasks/chid/install.rake +0 -14
- data/tasks/chid/start.rake +0 -26
- data/tasks/chid/update.rake +0 -14
- data/tasks/currency/convert.rake +0 -9
- data/tasks/currency/current.rake +0 -11
- data/tasks/currency/list.rake +0 -10
- data/tasks/github.rake +0 -12
- data/tasks/help.rake +0 -178
- data/tasks/install/node.rake +0 -18
- data/tasks/install/postgres.rake +0 -18
- data/tasks/install/rvm.rake +0 -21
- data/tasks/news.rake +0 -11
- data/tasks/stack_overflow.rake +0 -20
- data/tasks/tmux/config_windows.rake +0 -8
- data/tasks/tmux/new_session.rake +0 -9
- data/tasks/translate/yandex_list.rake +0 -7
- data/tasks/translate/yandex_translate.rake +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ccada7ec3ff5e03b4ec9558080fe93be00c88326544b796612bdb22d470fec5
|
4
|
+
data.tar.gz: 2dae7d98b4f2b41c1d48a2c1276f899610832b44b93c97515f31d2726ed228b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e8dfb7a099a8a7837d52a8bb125c3e6e908e9f566a0ff6b47322b8e070d0343097211b0e5e0673fa79d8b85c6c4fdec7d56d7a0cf003fe37675d8dacdd864ce
|
7
|
+
data.tar.gz: cf7e3cca3f6261f1a12750f5aac0ecd07c67c0b932428158e2bd38d9e2f4746ed6dc3ff89e57d2d2ae8e732cacd5e53dd11c6a4c3739f08109872817b0a20ead
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -1,4 +1,78 @@
|
|
1
1
|
# Contrinuting to Chid
|
2
2
|
|
3
3
|
## How run chid gem locally
|
4
|
-
|
4
|
+
`$ ruby -Ilib bin/chid [COMMAND]`
|
5
|
+
|
6
|
+
## Adding a new Command
|
7
|
+
|
8
|
+
### When the command has no sub-command
|
9
|
+
An example of no sub-command is the `chid news` command.
|
10
|
+
|
11
|
+
This command is straightforward, execute the `news` command.
|
12
|
+
### When the command has sub-command
|
13
|
+
An example of no sub-command is the `chid workstation` command.
|
14
|
+
|
15
|
+
For this command we have the following sub-commands:
|
16
|
+
- `create`
|
17
|
+
- `destroy`
|
18
|
+
- `list`
|
19
|
+
- `open`
|
20
|
+
|
21
|
+
A usage for it is `chid workstation open`
|
22
|
+
|
23
|
+
#### Structure
|
24
|
+
As we need many sub-commands, is necessary create a new module (folder) inside the `./lib/chid/commands/` folder.
|
25
|
+
|
26
|
+
For example we want to add `currency` with follwing commands:
|
27
|
+
- `current`
|
28
|
+
- `convert`
|
29
|
+
- `list`
|
30
|
+
|
31
|
+
The first thing is create the folder with those sub-commands:
|
32
|
+
- `./lib/chid/commands/currency/current.rb`
|
33
|
+
- `./lib/chid/commands/currency/convert.rb`
|
34
|
+
- `./lib/chid/commands/currency/list.rb`
|
35
|
+
|
36
|
+
**Class structure**:
|
37
|
+
|
38
|
+
This initial structure must exists to follow the command pattern to work on chid. The structure will be automatically added on helper command, when the user calls for example `chid currency now -h`
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
# ./lib/chid/commands/currency/current.rb
|
42
|
+
|
43
|
+
module Chid
|
44
|
+
module Commands
|
45
|
+
module Currency
|
46
|
+
class Now < Command
|
47
|
+
|
48
|
+
command :'currency current' # COMMAND_NAME
|
49
|
+
|
50
|
+
self.summary = 'Summary of your new Command'
|
51
|
+
self.description = <<-DESC
|
52
|
+
|
53
|
+
Usage:
|
54
|
+
|
55
|
+
$ chid currency now
|
56
|
+
|
57
|
+
SOME_DESCRIPTION_OF_THE_COMMAND
|
58
|
+
|
59
|
+
|
60
|
+
Options: # These are not required, only if your command demands for options.
|
61
|
+
|
62
|
+
-to TEXT_TO_EXPLAIN
|
63
|
+
-from TEXT_TO_EXPLAIN
|
64
|
+
|
65
|
+
DESC
|
66
|
+
self.arguments = ['-to', '-from']
|
67
|
+
|
68
|
+
|
69
|
+
# This method will be executed automatically
|
70
|
+
# To access all given arguments, you have available the attr_reader :options to get
|
71
|
+
def run
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
```
|
data/Gemfile.lock
CHANGED
@@ -1,46 +1,39 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
chid (0.1.6)
|
5
|
-
easy_translate
|
4
|
+
chid (0.1.6.2)
|
6
5
|
http
|
7
|
-
rake
|
8
6
|
tty-prompt
|
9
7
|
|
10
8
|
GEM
|
11
9
|
remote: https://rubygems.org/
|
12
10
|
specs:
|
13
|
-
addressable (2.
|
14
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.7.0)
|
12
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
13
|
coderay (1.1.1)
|
16
14
|
diff-lcs (1.3)
|
17
|
-
domain_name (0.5.
|
15
|
+
domain_name (0.5.20190701)
|
18
16
|
unf (>= 0.0.5, < 1.0.0)
|
19
|
-
|
20
|
-
|
21
|
-
thread_safe
|
22
|
-
equatable (0.5.0)
|
23
|
-
hitimes (1.2.6)
|
24
|
-
http (3.3.0)
|
17
|
+
equatable (0.6.1)
|
18
|
+
http (4.1.1)
|
25
19
|
addressable (~> 2.3)
|
26
20
|
http-cookie (~> 1.0)
|
27
21
|
http-form_data (~> 2.0)
|
28
22
|
http_parser.rb (~> 0.6.0)
|
29
23
|
http-cookie (1.0.3)
|
30
24
|
domain_name (~> 0.5)
|
31
|
-
http-form_data (2.1.
|
25
|
+
http-form_data (2.1.1)
|
32
26
|
http_parser.rb (0.6.0)
|
33
27
|
method_source (0.8.2)
|
34
|
-
necromancer (0.
|
35
|
-
pastel (0.7.
|
36
|
-
equatable (~> 0.
|
37
|
-
tty-color (~> 0.
|
28
|
+
necromancer (0.5.0)
|
29
|
+
pastel (0.7.3)
|
30
|
+
equatable (~> 0.6)
|
31
|
+
tty-color (~> 0.5)
|
38
32
|
pry (0.10.4)
|
39
33
|
coderay (~> 1.1.0)
|
40
34
|
method_source (~> 0.8.1)
|
41
35
|
slop (~> 3.4)
|
42
|
-
public_suffix (
|
43
|
-
rake (12.3.1)
|
36
|
+
public_suffix (4.0.1)
|
44
37
|
rspec (3.6.0)
|
45
38
|
rspec-core (~> 3.6.0)
|
46
39
|
rspec-expectations (~> 3.6.0)
|
@@ -55,26 +48,20 @@ GEM
|
|
55
48
|
rspec-support (~> 3.6.0)
|
56
49
|
rspec-support (3.6.0)
|
57
50
|
slop (3.6.0)
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
tty-color (0.4.2)
|
63
|
-
tty-cursor (0.5.0)
|
64
|
-
tty-prompt (0.16.1)
|
65
|
-
necromancer (~> 0.4.0)
|
51
|
+
tty-color (0.5.0)
|
52
|
+
tty-cursor (0.7.0)
|
53
|
+
tty-prompt (0.19.0)
|
54
|
+
necromancer (~> 0.5.0)
|
66
55
|
pastel (~> 0.7.0)
|
67
|
-
|
68
|
-
|
69
|
-
tty-
|
70
|
-
|
71
|
-
tty-cursor (~> 0.5.0)
|
72
|
-
tty-screen (~> 0.6.4)
|
56
|
+
tty-reader (~> 0.6.0)
|
57
|
+
tty-reader (0.6.0)
|
58
|
+
tty-cursor (~> 0.7)
|
59
|
+
tty-screen (~> 0.7)
|
73
60
|
wisper (~> 2.0.0)
|
74
|
-
tty-screen (0.
|
61
|
+
tty-screen (0.7.0)
|
75
62
|
unf (0.1.4)
|
76
63
|
unf_ext
|
77
|
-
unf_ext (0.0.7.
|
64
|
+
unf_ext (0.0.7.6)
|
78
65
|
wisper (2.0.0)
|
79
66
|
|
80
67
|
PLATFORMS
|
@@ -86,4 +73,4 @@ DEPENDENCIES
|
|
86
73
|
rspec
|
87
74
|
|
88
75
|
BUNDLED WITH
|
89
|
-
1.
|
76
|
+
1.17.2
|
data/README.md
CHANGED
@@ -6,162 +6,212 @@ installations, news, configurations, workstations and more.
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
1- Clone the project:
|
9
|
+
### Via Gem
|
12
10
|
|
13
11
|
```bash
|
14
|
-
|
12
|
+
$ gem install chid
|
15
13
|
```
|
16
14
|
|
17
|
-
|
15
|
+
#### Initialize the chid config file
|
18
16
|
|
19
17
|
```bash
|
20
|
-
$
|
21
|
-
$ bundle install
|
18
|
+
$ chid init
|
22
19
|
```
|
23
20
|
|
24
|
-
|
25
|
-
|
26
|
-
```bash
|
27
|
-
$ rake init
|
28
|
-
```
|
21
|
+
Creates a .chid.config file on root directory if none `~/.chid.config` file exists.
|
29
22
|
|
30
|
-
|
31
|
-
alias on your **.bashrc** or **.zshrc** (if you have zsh installed). After the
|
32
|
-
installation **Chid** will give you the *bash command* to reload your **sources**
|
33
|
-
file.
|
23
|
+
To access that file will be created in `~/.chid.config`
|
34
24
|
|
35
25
|
## Upgrading
|
36
26
|
|
37
27
|
To update the chid is easy.
|
38
28
|
|
39
29
|
```bash
|
40
|
-
$
|
30
|
+
$ gem update chid
|
41
31
|
```
|
42
32
|
|
43
33
|
## Usage
|
44
34
|
|
45
|
-
**Chid** is an app based on **
|
46
|
-
as rake tasks or run as a **terminal app**:
|
35
|
+
**Chid** is an gem app based on **Commands**. You are available to use all features running on **terminal**:
|
47
36
|
|
48
|
-
|
37
|
+
To see all commands and how to use on Terminal, run:
|
38
|
+
|
39
|
+
`$ chid -h`
|
40
|
+
|
41
|
+
**Note:** All Commands are available for **osx** and **linux**. The *chid* will automatically
|
49
42
|
knows how run the specific **comand** for each plataform.
|
50
43
|
|
51
44
|
All features are listed bellow:
|
52
45
|
|
53
|
-
|
46
|
+
### Install chid configuration
|
54
47
|
|
55
48
|
* `$ chid init` - Will install all necessary confiuration.
|
56
49
|
|
57
|
-
|
50
|
+
### Chid configuration
|
58
51
|
|
59
|
-
* `$ chid` -
|
52
|
+
* `$ chid config` - Open the **.chid.config** file using any source you want. By default is **vim**.
|
53
|
+
* `$ chid config -editor vim`
|
60
54
|
|
61
|
-
|
55
|
+
### Feature Commands
|
62
56
|
|
63
|
-
|
57
|
+
- [Git Commit](#git-commit)
|
58
|
+
- [Install apps](#install-apps)
|
59
|
+
- [Run apps](#run)
|
60
|
+
- [currency](#currency)
|
61
|
+
- [News](#news)
|
62
|
+
- [Search on StackOverflow](#search-on-stackOverflow)
|
63
|
+
- [Search GitHub repositories](#search-gitHub-repositories)
|
64
|
+
- [Workstations](#workstations)
|
65
|
+
- [Tmux](#tmux)
|
66
|
+
- [Configure and customize your workstations](#configure-workstation)
|
67
|
+
|
68
|
+
### <a name="git-commit"></a> Git Commit
|
64
69
|
|
65
|
-
|
70
|
+
Create a commits in based on gitFlow pattern.
|
66
71
|
|
67
|
-
|
72
|
+
* `$ chid commit` - Start the process of commiting
|
73
|
+
* `$ chid commit -h` - To see all options you can use as shortcut
|
68
74
|
|
69
|
-
|
75
|
+
#### An easy way to create commits following simple steps:
|
70
76
|
|
71
|
-
|
77
|
+
**First**:
|
78
|
+
Choose your commit type in this options (add,Remove, Update, Refactor, Fix)
|
72
79
|
|
73
|
-
|
74
|
-
|
75
|
-
* `convert [amount] [type_from] to [type_to]` - You can convert an amount between
|
76
|
-
types. Eg.: **convert 10 USD to BRL**
|
80
|
+
**Second**:
|
81
|
+
Type your commit title, a brief description of your changes
|
77
82
|
|
78
|
-
|
83
|
+
**Third**:
|
84
|
+
Add your description lines, describing exactly what you did
|
85
|
+
|
86
|
+
Thats it! Your commit will be created and pushed like this sample:
|
87
|
+
|
88
|
+
```YAML
|
89
|
+
feature/#123 Add specific file needed to app
|
90
|
+
|
91
|
+
- specific file have now this line
|
92
|
+
- this is the description line two
|
93
|
+
|
94
|
+
Signed-off-by: "YourName" "yourEmail@mail.com"
|
95
|
+
```
|
96
|
+
|
97
|
+
### <a name="install-apps"></a> Install apps
|
79
98
|
|
80
99
|
**Note:** All install tasks, chid will always ask if you really want to install it. Also
|
81
100
|
will install the dependencies if necessary.
|
82
101
|
|
83
|
-
*
|
84
|
-
*
|
85
|
-
*
|
86
|
-
*
|
87
|
-
*
|
102
|
+
* `$ chid install dotfiles` - Install [YADR Dotfiles](https://github.com/skwp/dotfiles)
|
103
|
+
* `$ chid install node` - Install Node
|
104
|
+
* `$ chid install postgres` - Install Postgres
|
105
|
+
* `$ chid install rvm` - Install stable RVM version
|
106
|
+
* `$ chid install vim and/or gvim` - Install Vim
|
88
107
|
|
89
|
-
|
108
|
+
### <a name="run"></a> Run
|
90
109
|
|
91
110
|
* `run postgres` - Run the postgresql if you already have installed.
|
92
111
|
|
93
|
-
|
112
|
+
### <a name="currency"></a> Currency
|
94
113
|
|
95
|
-
*
|
114
|
+
* `$ chid currency now` - Get the now converstion. Default -from USD -to BRL
|
115
|
+
* `$ chid currency list` - All list of available Source to use on `now` and `convert commands`
|
116
|
+
* `$ chid currency convert -amount [amount]` - You can convert an amount between types. Default -to BRL, -from USD
|
96
117
|
|
97
|
-
|
118
|
+
### <a name="news"></a> News
|
98
119
|
|
99
|
-
*
|
120
|
+
* `$ chid news` - Will show all news from some sites. BBC news, CNN, Espn,
|
100
121
|
Mashable, Google, Techcrunch, Reddit
|
101
122
|
|
102
|
-
|
103
|
-
|
104
|
-
* `t [TEXT]` or `t [TEXT] [FROM] to [TO]` - Will translate the given text. By
|
105
|
-
default the **from** is **en** and **to** is **pt**
|
106
|
-
|
107
|
-
Example:
|
108
|
-
`t hello world` or `t hello world en to pt`
|
123
|
+
### <a name="search-on-stackOverflow"></a> Search on StackOverflow
|
109
124
|
|
110
|
-
#### Search on StackOverflow
|
111
125
|
|
112
126
|
A simple search in StackOverflow
|
113
127
|
|
114
|
-
*
|
128
|
+
* `$ chid stack -search [TEXT_TO_SEACH]` - Will search on StackOverflow all results for that
|
115
129
|
text.
|
116
130
|
|
117
|
-
* `stack` - Will ask what you want to search on StackOverflow all results for that
|
118
|
-
|
119
131
|
<p align="left">
|
120
132
|
<img src="etc/img/stack.png" alt="stack sample" />
|
121
133
|
</p>
|
122
134
|
|
123
|
-
|
135
|
+
### <a name="search-gitHub-repositories"></a> Search GitHub repositories
|
124
136
|
|
125
137
|
A simple search for repository name
|
126
138
|
|
127
|
-
*
|
139
|
+
* `$ chid github -name [SEARCH_EXPRESSION]` - Show results for expression paginated every 10
|
128
140
|
|
129
|
-
|
141
|
+
### <a name="workstations"></a> Workstations
|
130
142
|
|
131
143
|
Workstations are a way to make it easy for you to open a set of applications by
|
132
144
|
simple commands.
|
133
145
|
|
134
146
|
The set of configurations are saved on **.chid.config** file.
|
135
147
|
|
136
|
-
**Note:** All commands bellow is possible run with prefix:
|
137
|
-
or `work [command]`.
|
148
|
+
**Note:** All commands bellow is possible run with prefix: `$ chid workstation [command]`
|
138
149
|
|
139
|
-
*
|
140
|
-
*
|
150
|
+
* `$ chid workstation list` - List all workstations
|
151
|
+
* `$ chid workstation create` - Create a new workstation. Chid will ask for a name to set the
|
141
152
|
new workstation and after that will list all **applications** available on your
|
142
153
|
system to chosse witch one you wanna add
|
143
|
-
*
|
154
|
+
* `$ chid workstation destroy` - Chid will ask which workstation you want to destroy and chid
|
144
155
|
will destroy it after choose
|
145
|
-
*
|
156
|
+
* `$ chid workstation open` - Open a specific workstation. Chid will list all workstations to
|
146
157
|
choose one of them to open all applications
|
147
|
-
*
|
148
|
-
from a list. Eg.:
|
158
|
+
* `$ chid workstation open -name [workstation_name]` - Open a specific workstation without choose
|
159
|
+
from a list. Eg.: `$ chid workstation open -name base` - It will open all applications inside the
|
149
160
|
**base** workstation
|
150
161
|
|
151
162
|

|
152
163
|
|
153
|
-
**Note:** For linux users the
|
164
|
+
**Note:** For linux users the `$chid workstation create` is not working. You need create
|
154
165
|
manually (editing the .chid.config file). Will be explained how on
|
155
166
|
**How configure and customize your workstations** topic
|
156
167
|
|
157
|
-
|
168
|
+
### <a name="tmux"></a> Tmux
|
169
|
+
|
170
|
+
If you use Tmux as I do for development, this is a nice Command Feature!
|
171
|
+
|
172
|
+
This feature is based on some templates you will create on `~/.chid.config` file to open easily all your Dev Env
|
173
|
+
|
174
|
+
This Feature have **2** commands, `list` and `open`
|
158
175
|
|
159
|
-
*
|
176
|
+
* `$ chid tmux list` - List all existent tmux template
|
177
|
+
* `$ chid tmux create` - Open a specific tmux template
|
178
|
+
|
179
|
+
#### An example of Template you will add on **~/.chid.config**:
|
180
|
+
|
181
|
+
```YAML
|
182
|
+
---
|
183
|
+
:chid:
|
184
|
+
:workstations: {}
|
185
|
+
:tmux_templates:
|
186
|
+
:NAME_YOUR_PROJECT:
|
187
|
+
- tmux new -s $$template_name$$ -n app -d;
|
188
|
+
- tmux send-keys -t $$template_name$$ 'cd DIRECTORY_PROJECT_PATH'
|
189
|
+
C-m;
|
190
|
+
- tmux send-keys -t $$template_name$$ 'vim' C-m C-m;
|
191
|
+
- tmux new-window -n tests -t $$template_name$$;
|
192
|
+
- tmux send-keys -t $$template_name$$ 'cd DIRECTORY_PROJECT_PATH'
|
193
|
+
C-m;
|
194
|
+
- tmux new-window -n server -t $$template_name$$;
|
195
|
+
- tmux send-keys -t $$template_name$$ 'cd DIRECTORY_PROJECT_PATH'
|
196
|
+
C-m;
|
197
|
+
- tmux attach -t $$template_name$$;
|
198
|
+
```
|
199
|
+
|
200
|
+
The example above each line is a tmux command. You can do what you need. In this case we have only two variables to replace:
|
201
|
+
- NAME_YOUR_PROJECT -> the name which will appear on `tmux list`
|
202
|
+
- DIRECTORY_PROJECT_PATH -> the full path of the your directory project. Ex.: `~/Workspaces/ruby-workspace/chid/`
|
203
|
+
|
204
|
+
The commands above means those steps:
|
205
|
+
1- Create a new Tmux session with `app` name for the first tab or Find an existent one and Open it
|
206
|
+
2- Open the folder project on the tmux tab `app`
|
207
|
+
3- Open a new tab called `vim` and open the vim on the folder project
|
208
|
+
4- Open a new tab called `server` and go to the folder project
|
209
|
+
|
210
|
+
**base** workstation
|
160
211
|
|
161
|
-
## How configure and customize your workstations
|
212
|
+
## <a name="configure-workstation"></a> How configure and customize your workstations
|
162
213
|
|
163
|
-
The chid configuration file is installed on **~/.chid.config**. You can open: `$ chid
|
164
|
-
chid_config`
|
214
|
+
The chid configuration file is installed on **~/.chid.config**. You can open: `$ chid config`
|
165
215
|
|
166
216
|
Chid config is a **YAML** file.
|
167
217
|
|
@@ -172,8 +222,8 @@ The initial chid config file will be like:
|
|
172
222
|
```YAML
|
173
223
|
---
|
174
224
|
:chid:
|
175
|
-
:chid_path: "[CHID_FOLDER_PROJECT_PATH]"
|
176
225
|
:workstations: {}
|
226
|
+
:tmux_templates: {}
|
177
227
|
```
|
178
228
|
|
179
229
|
#### Base configuration
|
@@ -183,18 +233,18 @@ To add a new *workstation* you can edit like:
|
|
183
233
|
```YAML
|
184
234
|
---
|
185
235
|
:chid:
|
186
|
-
:chid_path: "[CHID_FOLDER_PROJECT_PATH]"
|
187
236
|
:workstations:
|
188
237
|
:base: # Workstation Name
|
189
238
|
- iTerm #Application Name
|
190
239
|
- Safari
|
191
240
|
- Slack
|
241
|
+
:tmux_templates: {}
|
192
242
|
```
|
193
243
|
|
194
244
|
After edit you can open the **base** workstation running:
|
195
245
|
|
196
|
-
* `$ chid workstation
|
197
|
-
*
|
246
|
+
* `$ chid workstation open -name base`
|
247
|
+
* `$ chid workstation open -n base`
|
198
248
|
|
199
249
|

|
200
250
|
|
@@ -209,13 +259,13 @@ Is possible you can customize some options with each Application when will open
|
|
209
259
|
```YAML
|
210
260
|
---
|
211
261
|
:chid:
|
212
|
-
:chid_path: "[CHID_FOLDER_PROJECT_PATH]"
|
213
262
|
:workstations:
|
214
263
|
:base: # Workstation Name
|
215
|
-
- iTerm ~/Workspaces/rake-workspace/chid/ &
|
216
|
-
# in a specific folder and will run
|
264
|
+
- iTerm ~/Workspaces/rake-workspace/chid/ & rspec # Will open
|
265
|
+
# in a specific folder and will run the rspec (run all tests)
|
217
266
|
- Safari https://github.com/rachidcalazans/chid # Will open the Safari
|
218
267
|
# in a specific URL
|
268
|
+
:tmux_templates: {}
|
219
269
|
```
|
220
270
|
|
221
271
|

|