jpmartha / tryswiftdev

A command line tool for open-source projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tryswiftdev πŸ› 

This is a command line tool for open-source projects. πŸ’

Currently, support OS X only. πŸ™


A Work In Progress

This project has been rewriting in Swift.

It is built with the Swift Package Manager.

Maybe it is easily to write a shell (e.g. Bash), but this is exactly "try! Swift".



Installing (Coming soon)

Please download the tryswiftdev.pkg in the Releases and install it.

By default, get tryswiftdev into the /usr/local/bin/ directory.

You can verify your installation by typing tryswiftdev in a Terminal.app.

$ tryswiftdev

Options

-d [--duplicate-readme]    Duplicate an existing README.md.
                           Do not overwrite an existing file.
-r [--replace-readme]      Replace strings in a README.md
                           located in the current directory.
-h [--help]                Display available options.

Example

Please prepare a target directory beforehand. (e.g. DragonBall)

HomeDirectory
β”œβ”€β”€ Pokemon
β”‚   └── README.md (Pokemon)
└── DragonBall

Duplicating a README.md

$ tryswiftdev -d ../Pokemon ../DragonBall
HomeDirectory
β”œβ”€β”€ Pokemon
β”‚   └── README.md (Pokemon)
└── DragonBall
    └── README.md (Pokemon) ✨

Replacing Strings in a README.md

$ cd DragonBall
$ tryswiftdev -r Pokemon DragonBall
HomeDirectory
β”œβ”€β”€ Pokemon
β”‚   └── README.md (Pokemon)
└── DragonBall
    └── README.md (DragonBall) ✨

Availability

Recommend Swift 3.0-dev.


ToDo

  • Error Handling
  • Tests

etc.


License

Licensed under the MIT License.

About

A command line tool for open-source projects.

License:MIT License


Languages

Language:Swift 100.0%