From b075189afca645c0174c726f1f66c95759ccce9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Devran=20=C3=9Cnal?= Date: Sat, 17 Aug 2019 13:00:10 +0200 Subject: [PATCH] Update README.md --- README.md | 61 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index f55a29c..0656d77 100644 --- a/README.md +++ b/README.md @@ -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`.