Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmo authored Aug 17, 2019
1 parent ba46425 commit b075189
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,61 +54,78 @@ cd APP_NAME
Run these generators inside of your project directory.

```
# Create AppDelegate, Model, UICollectionView/UITableView Extensions, UIViewController with UICollectionView/UITableView, ViewControllerDetail, MainCoordinator, ChildCoordinator, Coordinator Protocol and ReusableView Protocol
hackman generate scaffold NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
# By default, the scaffold will be UICollectionView based.
# In order to create UITableView based scaffolds, pass the --view=table at the end.
# Like so:
hackman generate scaffold song title:string year:int --view=table
# Create an AppDelegate
hackman generate app_delegate
```
```
# Create an empty AssetCatalog
hackman generate asset_catalog
```
```
# Create a LaunchScreen-Storyboard
hackman generate launch_screen
```
```
# Create a ReusableView protocol and useful extensions for UICollectionViews and UITableViews
hackman generate reusable_view
```
```
# Create a Coordinator protocol
hackman generate coordinator
```
```
# Create a MainCoordinator
hackman generate coordinator_main
```
```
# Create a Child-Coordinator with the given name
hackman generate coordinator_child NAME
```
```
# Create a Model with the given name and properties
hackman generate model NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a UIViewController-Subclass with the given name
hackman generate view_controller NAME
```
```
# Create a ViewControllerCollection (UIViewController-Subclass with a UICollectionView) and UICollectionViewDataSource
hackman generate view_controller_collection NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a UICollectionViewCell-Subclass with the given namen and properties as UILabels
hackman generate collection_view_cell NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a ViewControllerTable (UIViewController-Subclass with a UITableView) and UITableViewDataSource
hackman generate view_controller_table NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a UITableViewCell-Subclass with the given namen and properties as UILabels
hackman generate table_view_cell NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a ViewControllerDetail (UIViewController-Subclass) with the given namen and properties as UILabels
hackman generate view_controller_detail NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
```
```
# Create a UIViewController-Subclass with a UIWebView
hackman generate view_controller_web
```
```
# Create a UIViewController-Subclass with entry points for legal documents
hackman generate view_controller_information
```
```
# Create AppDelegate, Model, UICollectionView/UITableView Extensions, UIViewController with UICollectionView/UITableView, ViewControllerDetail, MainCoordinator, ChildCoordinator, Coordinator Protocol and ReusableView Protocol
hackman generate scaffold NAME [PROPERTY[:TYPE] PROPERTY[:TYPE]] …
# By default, the scaffold will be UICollectionView based.
# In order to create UITableView based scaffolds, pass the --view=table at the end.
# Like so:
hackman generate scaffold song title:string year:int --view=table
```

You can also write `hackman g` instead of `hackman generate`.

Expand Down

0 comments on commit b075189

Please sign in to comment.