subnets

command module
v0.0.0-...-ec6486c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 11 Imported by: 0

README

Subnet Calculator

Introduction

This Subnet Calculator is a modern CLI tool inspired by davidc/subnets, designed to simplify network analysis and subnet calculation tasks. Built with Go and leveraging the Bubble Tea framework for a delightful TUI (Text-based User Interface), it offers an interactive and user-friendly way to calculate subnets, understand IP address allocations, and manage network configurations efficiently.

Features

  • Subnet Calculation: Easily calculate subnet masks, network addresses, broadcast addresses, and available IP addresses.
  • Interactive UI: Powered by Bubble Tea, the tool provides an interactive experience for inputting data and viewing results.
  • CIDR Support: Full support for Classless Inter-Domain Routing (CIDR) notation to specify IP addresses and subnet masks.
  • IP Range Analysis: Analyze and display the range of IP addresses within a given subnet.

Installation

Ensure you have Go installed on your system. You can download and install Go from the official Go website.

To install the Subnet Calculator, run the following command:

go install github.com/rochana-atapattu/subnets@latest

Usage

subnets <IP address> <mask length>

Example

subnets 192.168.0.0 24

Follow the on-screen prompts to enter your network information and perform subnet calculations.

Contributing

We welcome contributions! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -am 'feat: some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL