Обновить README.md
This commit is contained in:
parent
7aa8ba4cc0
commit
2db9f91cde
32
README.md
32
README.md
|
@ -154,7 +154,7 @@ task('setup_env', ['always' => true],
|
|||
|
||||
It's possible to specify miscellaneous build properties to setup a proper build environment conditions. There's a set of routines which provides taskman for properties manipulation.
|
||||
|
||||
### Setting a property
|
||||
#### Setting a property
|
||||
|
||||
Use **set** built-in function:
|
||||
|
||||
|
@ -168,7 +168,7 @@ task('setup_env', ['always' => true],
|
|||
});
|
||||
```
|
||||
|
||||
### Setting a property only if it's not already set
|
||||
#### Setting a property only if it's not already set
|
||||
|
||||
Use **setor** built-in function. Property will be set only if it's not set some where before. It's a convenient pattern to have a default set of properties which can be overriden by the environment properties included from an external script.
|
||||
|
||||
|
@ -182,7 +182,7 @@ task('setup_env', ['always' => true],
|
|||
});
|
||||
```
|
||||
|
||||
### Getting a property
|
||||
#### Getting a property
|
||||
|
||||
Use **get** built-in function:
|
||||
|
||||
|
@ -196,7 +196,7 @@ task('build_ios',
|
|||
});
|
||||
```
|
||||
|
||||
### Getting a property or some default value
|
||||
#### Getting a property or some default value
|
||||
|
||||
Use **getor** built-in function:
|
||||
|
||||
|
@ -209,3 +209,27 @@ task('build_ios',
|
|||
shell("xcode build app " . getor("IOS_APP_ID", "3232232"));
|
||||
});
|
||||
```
|
||||
|
||||
#### Listing all build properties
|
||||
|
||||
To list all defined build properties one should use the **props** task:
|
||||
|
||||
```
|
||||
./gamectl props
|
||||
|
||||
***** task 'props' start *****
|
||||
|
||||
Available props:
|
||||
---------------------------------
|
||||
UNITY_ASSETS_DIR : '/Users/ps/dev/skeletor//unity/Assets/'
|
||||
---------------------------------
|
||||
GAME_COMPANY_NAME : 'Black Hole Light'
|
||||
***** task 'props' done(0.11/0.11 sec.) *****
|
||||
***** All done (0.11 sec.) *****
|
||||
```
|
||||
|
||||
You can filter properties you want to get information about by a partial match as follows:
|
||||
|
||||
```
|
||||
./gamectl props FOO
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue