Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
schema_version = 1

project {
license = "MPL-2.0"
copyright_year = 2026

# (OPTIONAL) If true, ignore updating the first year (start year) in copyright ranges.
# End-year logic remains unchanged.
# Default: false
# ignore_year1 = false

# (OPTIONAL) A list of globs that should not have copyright/license headers.
# Supports doublestar glob patterns for more flexibility in defining which
# files or folders should be ignored
header_ignore = [
# "vendor/**",
# "**autogen**",
]
}
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2021, 2026
# Copyright IBM Corp. 2026

version: "2"
run:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright IBM Corp. 2021, 2026
# Copyright IBM Corp. 2026

version: 2
before:
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright IBM Corp. 2026
# SPDX-License-Identifier: MPL-2.0

ARG base_image=docker.artifactory.hashicorp.engineering/ubuntu:24.04
FROM ${base_image}

Expand Down
374 changes: 370 additions & 4 deletions LICENSE

Large diffs are not rendered by default.

Binary file modified assets/tfcloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions internal/commands/api/api.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package api implements the tfcloud CLI API command.
package api

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/display.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/display_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/get.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/get_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package profile implements the `tfcloud profile` command group for managing tfcloud CLI profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profile_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/activate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/activate_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/create.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/create_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/delete.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/delete_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/list.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/list_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/profiles.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package profiles implements the `tfcloud profile profiles` command group for managing tfcloud CLI profiles.
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/rename.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/profiles/rename_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profiles
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/property_docs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/property_docs_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/set.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/set_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/unset.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/profile/unset_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package profile
Expand Down
4 changes: 2 additions & 2 deletions internal/commands/tfcloud/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2026
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package tfcloud implements the root command for the tfcloud CLI.
Expand All @@ -17,7 +17,7 @@ func NewCmdRoot(ctx *cmd.Context) *cmd.Command {
c := &cmd.Command{
Name: config.Name,
ShortHelp: "Interact with HCP Terraform and Terraform Enterprise.",
LongHelp: "The tfcloud command-line interface (CLI) is a unified tool to managing HCP Terraform and Terraform Enterpise from the command line.",
LongHelp: "The tfcloud command-line interface (CLI) is a unified tool for managing HCP Terraform and Terraform Enterprise from the command line.",
}

// _ _ ___ _____ _____
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/variable/variable.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2026
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package variable implements the `tfcloud variable` command group.
Expand Down
3 changes: 3 additions & 0 deletions internal/commands/variable/variable_import.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package variable

import (
Expand Down
2 changes: 1 addition & 1 deletion internal/config/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2020, 2026
// Copyright IBM Corp. 2026

// Package config contains runtime configuration related code for the CLI, such as
// version information.
Expand Down
3 changes: 3 additions & 0 deletions internal/pkg/client/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package client provides configured HCP Terraform API clients and raw request helpers.
package client

Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/args.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/args_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/command.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package cmd provides the structures and functions for constructing commands.
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/command_internal.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/command_internal_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/command_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/compat.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/compat_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/context.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/flags.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/gen_md.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/gen_nav_json.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/standard_errors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/validate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/cmd/validate_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package cmd
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/counter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
3 changes: 3 additions & 0 deletions internal/pkg/flagvalue/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

// Package flagvalue provides custom pflag.Value implementations for common flag types.
package flagvalue
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/duration.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/duration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/enum.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/enum_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/map.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/map_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/simple.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/simple_slice.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/simple_slice_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/flagvalue/simple_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package flagvalue_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/format/displayers_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package format_test
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/format/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2024, 2025
// Copyright IBM Corp. 2026
// SPDX-License-Identifier: MPL-2.0

package format_test
Expand Down
Loading
Loading