README.md in postmon_ruby-2.1.2 vs README.md in postmon_ruby-2.1.3
- old
+ new
@@ -42,12 +42,60 @@
puts resultado.area_km2
puts resultado.codigo_ibge
puts resultado.nome
```
+###Para consultar pelo terminal
+#### Consultar pelo CEP:
+
+ $ postmon-ruby --cep 49015040
+
+ Complemento: lado ímpar
+ Bairro: São José
+ Cidade: Aracaju
+ Logradouro: Avenida Barão de Maruim
+ Estado: SE
+ Cep: 49015040
+
+#### Consultar informações de uma cidade:
+
+ $ postmon-ruby --cidade SE,Aracaju
+
+ Area_km2: 181,857
+ Codigo_ibge: 2800308
+
+#### Consultar informações de um estado:
+
+ $ postmon-ruby --estado SE
+
+ Area_km2: 21.915,116
+ Codigo_ibge: 28
+ Nome: Sergipe
+
+#### Consultar informações de rastreio de um pacote:
+
+ $ postmon-ruby --rastreio RF223325059SG
+
+ Codigo: RF223325059SG
+ Servico: ect
+ detalhes: Em trвnsito para UNIDADE DE TRATAMENTO INTERNACIONAL - BRASIL
+ local: CINGAPURA
+ data: 11/04/2014 14:04
+ situacao: Encaminhado
+
+#### Menu de opções:
+
+ $ postmon-ruby -h
+
+ Usage postmon [options]
+ --cep CEP Consultar CEP
+ --cidade UF,Cidade Consultar informações de uma cidade
+ --estado UF Consultar informações de um estado
+ --rastreio CODIGO_POSTAGEM Consultar informações de rastreio de um pacote
+
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
-5. Create new Pull Request
\ No newline at end of file
+5. Create new Pull Request