Skip to content

Commit

Permalink
chore(release): prepare for v0.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Gaoyang Zhang <[email protected]>
  • Loading branch information
blurgyy committed Oct 17, 2021
1 parent 900bf04 commit 78b5a8b
Show file tree
Hide file tree
Showing 6 changed files with 218 additions and 16 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
[![crates.io](https://img.shields.io/crates/v/dt-cli?style=flat&labelColor=1C2C2E&color=C96329&logo=Rust&logoColor=white)](https://crates.io/crates/dt-cli)

`DT` allows you to sync/populate configuration files at will. It currently
provides a CLI tool [`dt-cli`](./dt-cli), built with backend
[`dt-core`](./dt-core).
provides a CLI tool `dt-cli`.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions dt-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dt-cli"
description = "Syncing dotfiles and more"
version = "0.1.0"
version = "0.2.0"
edition = "2018"
authors = ["Gaoyang Zhang <[email protected]>"]
documentation = "https://dt-cli-docs.blurgy.xyz/"
Expand All @@ -15,7 +15,7 @@ keywords = ["dotfiles", "manager", "syncing", "config"]
[dependencies]
color-eyre = "0.5.11"
dirs = "4.0.0"
dt-core = { path = "../dt-core", version = "0.1.1" }
dt-core = { path = "../dt-core", version = "0.2.0" }
log = "0.4.14"
pretty_env_logger = "0.4.0"
structopt = "0.3.23"
Expand Down
1 change: 0 additions & 1 deletion dt-cli/README.md

This file was deleted.

102 changes: 102 additions & 0 deletions dt-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# DT

[![release](https://github.com/blurgyy/dt/actions/workflows/release.yml/badge.svg)](https://github.com/blurgyy/dt/actions/workflows/release.yml)
[![tests](https://github.com/blurgyy/dt/actions/workflows/tests.yml/badge.svg)](https://github.com/blurgyy/dt/actions/workflows/tests.yml)
[![docs](https://github.com/blurgyy/dt/actions/workflows/docs.yml/badge.svg)](https://dt-cli-docs.blurgy.xyz/)
[![crates.io](https://img.shields.io/crates/v/dt-cli?style=flat&labelColor=1C2C2E&color=C96329&logo=Rust&logoColor=white)](https://crates.io/crates/dt-cli)

`DT` allows you to sync/populate configuration files at will. It currently
provides a CLI tool `dt-cli`.

## Usage

The command line interface `dt-cli` takes a path to the configuration file as
argument and issues the syncing process defined in the configuration file.

See [documentations](https://dt-cli-docs.blurgy.xyz/) for configuration guides
and detailed usages.

### Example

A minimal working configuration file to sync all files that matches
`*init.vim` from `~/dt/nvim` to `~/.config/nvim` can be written as:

```toml
[[local]]
name = "Neovim Configs"
basedir = "~/dt/nvim"
sources = ["*init.vim"]
target = "~/.config/nvim"
```

:warning: **STOP HERE if you don't know what you are doing, or have not backed
up existing files under `~/.config/nvim`.**

Save above config to `~/.config/dt/cli.toml` and run

```shell
$ dt-cli -c ~/.config/dt/cli.toml
```

to start syncing. Note the path in this example (`~/.config/dt/cli.toml`) is
also the default path, so the below command (calling `dt-cli` with no argument)
does the same thing as above:

```shell
$ dt-cli
```

**Other command line options & flags**

| Options/Flags | Description |
|---:|:---|
| `-c\|--config-path <path>` | Specifies path to config file. |
| `-d\|--dry-run` | Shows changes to be made without actually syncing files. |
| `-v\|--verbose` | Increases logging verbosity. |
| `-q\|--quiet` | Decreases logging verbosity. |
| `-h\|--help` | Prints help information. |
| `-V` | Prints version information. |

## Install

### AUR

`dt-cli` is in the [AUR](https://aur.archlinux.org/packages/dt-cli/), you can
install it with your favorite package manager:

```shell
$ paru -S dt-cli
```

### Alternative Ways

Alternatively, you can:

- Download latest [release](https://github.com/blurgyy/dt/releases/latest)
from GitHub
- Install from [crates.io](https://crates.io/crates/dt-cli/):

```shell
$ cargo install dt-cli
```

- Build from source:

```shell
$ git clone github.com:blurgyy/dt.git
$ cd dt
$ cargo test --release
$ cargo install --path=dt-cli
```

## Contributing

There are many ways to contribute to this project. Get started
[here](./CONTRIBUTING.md)!

## License

Licensed under the the MIT license <http://opensource.org/licenses/MIT> or
Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>, at
your option. This file may not be copied, modified, or distributed except
according to those terms.
2 changes: 1 addition & 1 deletion dt-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dt-core"
description = "Core utilities used by dt-cli"
version = "0.1.1"
version = "0.2.0"
edition = "2018"
authors = ["Gaoyang Zhang <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
102 changes: 102 additions & 0 deletions dt-core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# DT

[![release](https://github.com/blurgyy/dt/actions/workflows/release.yml/badge.svg)](https://github.com/blurgyy/dt/actions/workflows/release.yml)
[![tests](https://github.com/blurgyy/dt/actions/workflows/tests.yml/badge.svg)](https://github.com/blurgyy/dt/actions/workflows/tests.yml)
[![docs](https://github.com/blurgyy/dt/actions/workflows/docs.yml/badge.svg)](https://dt-cli-docs.blurgy.xyz/)
[![crates.io](https://img.shields.io/crates/v/dt-cli?style=flat&labelColor=1C2C2E&color=C96329&logo=Rust&logoColor=white)](https://crates.io/crates/dt-cli)

`DT` allows you to sync/populate configuration files at will. It currently
provides a CLI tool `dt-cli`.

## Usage

The command line interface `dt-cli` takes a path to the configuration file as
argument and issues the syncing process defined in the configuration file.

See [documentations](https://dt-cli-docs.blurgy.xyz/) for configuration guides
and detailed usages.

### Example

A minimal working configuration file to sync all files that matches
`*init.vim` from `~/dt/nvim` to `~/.config/nvim` can be written as:

```toml
[[local]]
name = "Neovim Configs"
basedir = "~/dt/nvim"
sources = ["*init.vim"]
target = "~/.config/nvim"
```

:warning: **STOP HERE if you don't know what you are doing, or have not backed
up existing files under `~/.config/nvim`.**

Save above config to `~/.config/dt/cli.toml` and run

```shell
$ dt-cli -c ~/.config/dt/cli.toml
```

to start syncing. Note the path in this example (`~/.config/dt/cli.toml`) is
also the default path, so the below command (calling `dt-cli` with no argument)
does the same thing as above:

```shell
$ dt-cli
```

**Other command line options & flags**

| Options/Flags | Description |
|---:|:---|
| `-c\|--config-path <path>` | Specifies path to config file. |
| `-d\|--dry-run` | Shows changes to be made without actually syncing files. |
| `-v\|--verbose` | Increases logging verbosity. |
| `-q\|--quiet` | Decreases logging verbosity. |
| `-h\|--help` | Prints help information. |
| `-V` | Prints version information. |

## Install

### AUR

`dt-cli` is in the [AUR](https://aur.archlinux.org/packages/dt-cli/), you can
install it with your favorite package manager:

```shell
$ paru -S dt-cli
```

### Alternative Ways

Alternatively, you can:

- Download latest [release](https://github.com/blurgyy/dt/releases/latest)
from GitHub
- Install from [crates.io](https://crates.io/crates/dt-cli/):

```shell
$ cargo install dt-cli
```

- Build from source:

```shell
$ git clone github.com:blurgyy/dt.git
$ cd dt
$ cargo test --release
$ cargo install --path=dt-cli
```

## Contributing

There are many ways to contribute to this project. Get started
[here](./CONTRIBUTING.md)!

## License

Licensed under the the MIT license <http://opensource.org/licenses/MIT> or
Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0>, at
your option. This file may not be copied, modified, or distributed except
according to those terms.

0 comments on commit 78b5a8b

Please sign in to comment.