Skip to content

Commit

Permalink
Convert md to adoc with kramdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavid committed Aug 5, 2023
1 parent 3e7b5b0 commit 9de5262
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 75 deletions.
82 changes: 82 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// Settings:
:toc: macro
:!toc-title:
// URLs:
:url-cv: http://cv.rabkin.co.il
:url-license: https://github.com/rdavid/renamr/blob/master/LICENSE
:url-vale: https://vale.sh
:url-yamllint: https://github.com/adrienverge/yamllint

= Renamr

image:https://ci.appveyor.com/api/projects/status/cca9iog230smu3k2?svg=true[build,link=https://ci.appveyor.com/project/rdavid/renamr]
image:https://github.com/rdavid/renamr/actions/workflows/rubocop.yml/badge.svg[rubocop,link=https://github.com/rdavid/renamr/actions/workflows/rubocop.yml]
image:https://badge.fury.io/rb/renamr.svg[gem,link=https://badge.fury.io/rb/renamr]
image:https://api.codeclimate.com/v1/badges/406f1433b0b9e0509a6e/maintainability[maintainability,link=https://codeclimate.com/github/rdavid/renamr/maintainability]
image:https://hitsofcode.com/github/rdavid/renamr?branch=master&label=hits%20of%20code[hits of code,link=https://hitsofcode.com/view/github/rdavid/renamr]
image:https://img.shields.io/badge/code_style-rubocop-brightgreen.svg[ruby style,link=https://github.com/rubocop/rubocop]
image:https://img.shields.io/github/license/rdavid/renamr?color=blue&labelColor=gray&logo=freebsd&logoColor=lightgray&style=flat[license,link=https://github.com/rdavid/renamr/blob/master/LICENSE]

toc::[]

== About

`renamr` organizes file and directory names.

== Installation

The tool is designed to work on macOS, GNU/Linux, Windows, Unix-like OS.
It is packaged as a Gem and require Ruby version 2.6 or later.
See "`https://www.ruby-lang.org/en/documentation/installation/[Installing Ruby]`" if you don't have the proper version on your platform.

Use this command to install:

[,sh]
----
gem install renamr
----

=== Updating

Use this command to update the package:

[,sh]
----
gem update renamr
----

=== Requirements

There are no requirements.

== Usage

[,sh]
----
renamr [options]
-a, --act Real renaming.
-r, --rec Passes recursively.
-l, --lim Limits name length.
-m, --mod Prepends modification time.
-d, --dir dir Directory to rename.
-s, --src src A string to substitute.
-t, --dst dst A string to replace to.
-w, --wid wid Width of the table.
-p, --pre str,beg A string to prepend to started from beg.
-c, --cut pos,len Removes len symbols from pos.
-v, --version Shows version.
----

=== Example

[,sh]
----
renamr -d <source>
----

It renames all files in `source` by default pattern: 26 English letters, 10 numbers, minus for spaces and other symbols.

== License

`renamr` is copyright {url-cv}[David Rabkin] and available under a
{url-license}[Zero-Clause BSD license].
75 changes: 0 additions & 75 deletions README.md

This file was deleted.

0 comments on commit 9de5262

Please sign in to comment.