Skip to content

architmishra-15/license-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License CLI

The project helps in placing the required license to the project repo. There are various licenses available.

The name and year is automatically infered by the program, but can also be passed via command line.

Usage -

Usage can also be printed with - ```bash ❯ license License CLI Tool

Usage:
  license list                       Show all available licenses
  license add <name>                 Add a license to current directory
  license add <name> --author=<you>  Add license with custom author

Examples:
  license list
  license add mit
  license add apache-2.0 --author="Alice"
```

Available commands -

  • list : List all the available licenses -

    ❯ license list
    Available licenses:
      mit
      apache-2.0
      gpl-3
      bsd-2
      gnu-agpl
      bsd-3
      gpl-2
      mozilla-2
      unlicense

    For window users, the list of licenses should be under %APPDATA%/Local/license-cli/licenses And for Linux - ~/.config/license-cli/licenses

  • add : Add the given license to the current dir.

  • version : Print the current version of the CLI -

❯ license version
license_cli 0.1.0
Author: Archit Mishra
License: GPL-3.0
GitHub: https://github.com/architmishra-15/license-cli
  • help : Shows help message (Idk why was this needed) -
❯ license help
A CLI tool for managing project licenses

Usage: license [COMMAND]

Commands:
  list
  add
  version
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help
  -v, --version
  -V, --version  Print version

License

The project is licensed under GPL-3.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages