Giter Site home page Giter Site logo

harikesh-14 / rust-cutlink Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 35 KB

CutLink is a command-line tool written in Rust for quickly shortening URLs. With CutLink, you can generate shortened versions of long URLs right from your terminal, streamlining your workflow and making link sharing effortless. Designed for simplicity and speed, CutLink provides a seamless experience without the need for a web browser.

License: MIT License

Rust 100.00%

rust-cutlink's Introduction

CutLink

CutLink is a URL shortening service written in Rust. This application allows users to shorten long URLs and manage these shortened links through various functionalities, including listing, searching, and deleting links.

Table of Contents

Explanation

  • Installation: Instructions on how to clone the repository, build, and run the project.
  • Usage: How to use the various commands provided by the application.
  • Contributing: Guidelines for contributing to the project.

Installation

To get started with CutLink, you'll need to have Rust installed on your machine. If you don't have Rust installed, you can download it from rust-lang.org.

Clone the repository:

git clone https://github.com/yourusername/cutlink.git
cd cutlink

Build the project:

cargo build

Run the project:

cargo run <arg1> <arg2> <arg3>

Build version:

To generate the build folder for the global use of this project in your system, you need to generate the release version using the given below command:

cargo run build --release

This will generate a release folder in your target folder. Copy the path of release folder and set it as an environment variable.

Now you can use it globally and instead of writing cargo run everytime, you can simply use cutlink instead of cargo run following the arguments.

Usage

CutLink provides several commands to manage your links. Below are the commands available:

Convert Links:

To convert links use the following command:

cargo run cvert <original_link>

Show Links:

To display the list of all links use the following command:

cargo run show all

Delete Link:

To delete a particular link use the following command:

cargo run delete <id>

Clear table:

To clear the whole table at once, use the following command:

cargo run clear

Search:

To search a particular link in a table based on original link or shortened link, use the following commands:

  • To search using original link:

      cargo run search -ol <link>
  • To search using shortened link:

      cargo run search -sl <link>

List:

To search using specific characters, use the following command:

  • To search using original link:

      cargo run list -ol <link>
  • To search using shortened link:

      cargo run list -sl <link>

Help Center:

You can also access help center using the following:

cargo run help
  • This help center contains the list of all the commands and how to use it in the terminal.

Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch git checkout -b feature-branch.
  3. Commit your changes git commit -m 'Add new feature'.
  4. Push to the branch git push origin feature-branch.
  5. Open a pull request.

You can adjust the details to match your project's specifics, such as repository URL and any additional commands or configurations you have.

rust-cutlink's People

Contributors

harikesh-14 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.