Skip to content

Commit

Permalink
feat: command-line tool request definition (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqin2019 authored Jun 22, 2023
1 parent 4c2fed6 commit 8eec7f1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions apis/v1alpha1/cli_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 The Authors (see AUTHORS file)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package v1alpha1

// CLIRequest represents a request to run CLI commands.
type CLIRequest struct {
// CLI name such as gcloud.
CLI string `yaml:"cli,omitempty"`

// List of commands without CLI name.
Do []string `yaml:"do,omitempty"`

// List of cleanup commands without CLI name to run after "do" is completed.
Cleanup []string `yaml:"cleanup,omitempty"`
}

0 comments on commit 8eec7f1

Please sign in to comment.