Skip to content

Commit

Permalink
update copyright to 2021-2023
Browse files Browse the repository at this point in the history
add update-copyright target
  • Loading branch information
synfinatic committed Aug 9, 2023
1 parent 870ee64 commit 41429a1
Show file tree
Hide file tree
Showing 67 changed files with 73 additions and 68 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ release: .validate-release .shasum clean .build-release package ## Build all our
cd dist && shasum -a 256 * | gpg --clear-sign >release.sig.asc

.PHONY: run
run: cmd/aws-sso/*.go sso/*.go ## build and run using $PROGRAM_ARGS
run: cmd/aws-sso/*.go sso/*.go ## build and run using $PROGRAM_ARGS
go run ./cmd/aws-sso $(PROGRAM_ARGS)

.PHONY: delve
Expand Down Expand Up @@ -243,3 +243,8 @@ docs/default-region.png:
.PHONY: loc
loc: ## Print LOC stats
wc -l $$(find . -name "*.go")

update-copyright: ## Update the copyright year on *.go
$(shell YEAR=$$(date +%Y) LAST_YEAR=$$(($$(date +%Y)-1)) \
sed -i '' -Ee "s|2021-${LAST_YEAR}|2021-${YEAR}|" $$(find . -name "*.go"))
@echo "Updated copyright to 2021-$$(date +%Y)"
2 changes: 1 addition & 1 deletion cmd/aws-sso/cache_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/completions_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/config_profiles_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/console_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/eval_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/exec_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/flush_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/list_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
4 changes: 2 additions & 2 deletions cmd/aws-sso/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -59,7 +59,7 @@ const (
JSON_STORE_FILE = CONFIG_DIR + "/store.json"
INSECURE_CACHE_FILE = CONFIG_DIR + "/cache.json"
DEFAULT_STORE = "file"
COPYRIGHT_YEAR = "2021-2022"
COPYRIGHT_YEAR = "2021-2023"
)

var DEFAULT_CONFIG map[string]interface{} = map[string]interface{}{
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/process_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/setup_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/setup_prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/static_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/tags_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion cmd/aws-sso/time_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/awsconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package awsconfig

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/awsconfig/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package awsconfig

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/awsconfig/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package awsconfig

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/awsconfig/section.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package awsconfig

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package helper

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/helper/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package helper

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/comp_vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/comp_vars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/predictor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/predictor/predictor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package predictor

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/json_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/json_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/keyring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/secure_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storage

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/tags/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tags

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/tags/tags_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tags

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/url/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package url

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
2 changes: 1 addition & 1 deletion internal/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package url

/*
* AWS SSO CLI
* Copyright (c) 2021-2022 Aaron Turner <synfinatic at gmail dot com>
* Copyright (c) 2021-2023 Aaron Turner <synfinatic at gmail dot com>
*
* This program is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
Expand Down
Loading

0 comments on commit 41429a1

Please sign in to comment.