Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 5f7af24

Browse files
committed
Add install instructions on README
1 parent 9ed3fcb commit 5f7af24

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cosFaker [![GitHub issues](https://img.shields.io/github/issues/henryhamon/cosfaker.svg)](https://github.com/henryhamon/cosfaker/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/henryhamon/cosfaker/master/LICENSE)
1+
# cosFaker [![GitHub issues](https://img.shields.io/github/issues/henryhamon/cosfaker.svg)](https://github.com/henryhamon/cosfaker/issues) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/henryhamon/cosfaker/master/LICENSE)
22
Generate massive amounts of fake data for Intersystems Caché
33

44
The language of data is according to configuration of your Caché (Now works with Pt-Br and En-Us(Default)).
@@ -25,6 +25,16 @@ The language of data is according to configuration of your Caché (Now works wit
2525
* StarWars (Character, Droid, Planet, Quote, Specie, Vehicle, Wookie word, Wookie Sentence)
2626
* UFC (Category, Fighter, Fighter by category, Nickname)
2727

28+
## Instalation
29+
30+
To install cosFaker, you just need to import the package cosFaker.vX.X.X.xml file.
31+
You can go to Management Portal -> System Explorer -> Classes -> Import and select the XML file or just drag the file over Studio.
32+
Also, if you like terminal like me, execute:
33+
34+
```
35+
Do $system.OBJ.Load("yourpath/cosFaker.vX.X.X.xml","ck")
36+
```
37+
2838

2939
## Usage
3040

@@ -73,7 +83,7 @@ Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{Nome:'name 2',Cidade:'city SC
7383

7484
```cos
7585
//Suppose you want a person with name, street, phone and his 3 preferred Pokemons
76-
Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{person:['name','street','phone','3 pokemon']}")
86+
Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{person:['name','street','phone','3 pokemon']}")
7787
// {"person":
7888
// [
7989
// "Yango Nogueira",
@@ -91,7 +101,7 @@ Set person = ##class(cosFaker.JSON).GetDataOBJFromJSON("{name:'name 2',birth:'da
91101
Write person.name
92102
// Flávio Silveira
93103
94-
Set listOfPokemons = person.pokemons
104+
Set listOfPokemons = person.pokemons
95105
Write listOfPokemons.GetAt(1)
96106
// Diancie
97107

0 commit comments

Comments
 (0)