Created
August 15, 2012 15:19
-
-
Save wess/3360974 to your computer and use it in GitHub Desktop.
write option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PRouter addOption:@[@"n", @"new"] callback:^(NSString *value) { | |
NSDictionary *manifest = @{ | |
@"name" : @"", | |
@"description" : @"", | |
@"version" : @"", | |
@"author" : @"", | |
@"url" : @"", | |
@"keywords" : @[] | |
}; | |
NSFileManager *fileManager = [[NSFileManager alloc] init]; | |
NSString *currentPath = [fileManager currentDirectoryPath]; | |
NSString *manifestPath = [NSString stringWithFormat:@"%@/MANIFEST.plist", currentPath]; | |
[manifest writeToFile:manifestPath atomically:YES]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment