go-update-license-copyright-year

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

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 13 Imported by: 0

README

I wanted to update the license files of all my Github repositories
What it does

Works with any license which has one of the following types of copyright lines:

  • Copyright (c) 2014-2015 Andrei Avram
  • Copyright (c) 2016 Andrei Avram

It will just update/add the current year (or any you wish) for the copyright line. If the year is 2017, the above two lines will be changed to:

  • Copyright (c) 2014-2017 Andrei Avram
  • Copyright (c) 2016-2017 Andrei Avram
Usage
  • go run !(*_test).go

  • Possible actions

    • List repositories: Only the username is needed
    • Update license: Username and access token needed
  • Required data will be prompted

    • Username: your Github username
    • Github access token: Your personal access token for Github API
    • License filenames: Possible names of your license files (leave empty to keep default)
    • Branch: The branch to make the changes on (leave empty to keep default)
    • Commit message: The commit message you wish to set for the changes (leave empty to keep default)
    • Current year (leave empty to keep current year)
  • Github access token

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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