Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

yack

Yack. Ack for Objective-C developers.

Yack is a super-set of ack, the popular grep-replacement tool maintained by Andy Lester. It introduces new functionality designed to improve the workflow of Objective-C developers everywhere.

Installation

git clone git@github.com:gsheld/yack.git # clone repository
ln -s yack/yack.sh /usr/local/bin/yack # sym-link yack to bin

Usage

1. Search for Objective-C Selector
yack --sel "setObject:forKey:" # example of a well-formed selector
yack --sel "(void)fooBar:(NSString *)string baz:(NSInteger)integer;" # method signature
2. Search Imports for Occurence of a String

Yack will search both the header and implementation files for each import of the specified file.

yack -j "foo" ./YCKSomeObjCFile.m
yack --imports "bar" ./YCKSomeOtherObjCFile.h
3. Use it Like Ack
yack -i --ignore-dir=tmp/ "foo bar"
yack -o -Q "foo\s?bar"
4. Mix 'n Match (experimental)
yack -Q --imports "bar" ./YCKSomeOtherObjCFile.h
yack -i -l --sel "(void)fooBar:(NSString *)string baz:(NSInteger)integer;"

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-yack-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-yack-feature
  5. Submit a pull request!

About

Yack. Ack for Objective-C developers.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages