From 30085b77f3a19899be1a73f7cbfc4fb9f9975b47 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Sun, 25 Dec 2022 13:27:24 +0300 Subject: [PATCH] docs: prepare for 0.1.1-dev release --- CMakeLists.txt | 2 +- README.md | 14 ++++++++------ src/cli.c | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 092d016..b63f509 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.23) project(tanabata - VERSION 0.1.0 + VERSION 0.1.1 HOMEPAGE_URL https://github.com/H1K0/tanabata LANGUAGES C) diff --git a/README.md b/README.md index cf197ee..7182a70 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,12 @@ Tanabata FM is a file manager for Linux that will let you enjoy the Tanabata fes ## Usage -First of all, compile the source code or simply download [this executable file](https://github.com/H1K0/tanabata/releases/download/v0.1.0-dev/tfm). For better experience, move the executable file to `/usr/bin` folder (totally safe if you don't have any other app with the name `tfm`) or add the folder with it to `PATH`. +First of all, compile the source code or just download [this executable file](https://github.com/H1K0/tanabata/releases/download/v0.1.1-dev/tfm). For better experience, move the executable to the `/usr/bin` directory (totally safe unless you have another app named `tfm`) or add the directory with it to `PATH`. -Then just open the terminal and run `tfm -h`. You should get the following. +Then just open the terminal and run `tfm -h`. If you are running it for the first time, run it with `sudo` or manually create the `/etc/tfm` directory and check its permissions. This is the directory where TFM stores its config file. If everything is set up properly, you should get the following. ``` -(C) Masahiko AMANO aka H1K0, 2022 +(C) Masahiko AMANO aka H1K0, 2022—present (https://github.com/H1K0/tanabata) Usage: @@ -47,8 +47,8 @@ tfm Options: -h Print this help and exit --I Initialize Tanabata database in directory --O Open Tanabata database from directory +-I Initialize new Tanabata database in directory +-O Open existing Tanabata database from directory -a View all -s Set or add -u Unset or remove @@ -57,9 +57,11 @@ Options: -k Kazari menu (can only be used with the '-s' or '-u' option) -w Weed (defragment) database -V Print version and exit + +No database connected ``` -So, here is the list of all available options. +So, let's take a look at each option. Using the `-I ` option, you can initialize the TFM database in the specified directory. The app creates empty sasahyou, sappyou and shoppyou files and saves the directory path to a configuration file. The new database will be used the next time you run the app until you change it. diff --git a/src/cli.c b/src/cli.c index c1e975a..c265493 100644 --- a/src/cli.c +++ b/src/cli.c @@ -317,7 +317,7 @@ int cli(int argc, char **argv) { } return 0; case 'V': - printf("0.1.0-dev\n"); + printf("0.1.1-dev\n"); return 0; case 'I': abspath = realpath(optarg, abspath);