Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for input file in CLI Run method #139

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

catatsuy
Copy link
Owner

@catatsuy catatsuy commented Mar 20, 2024

This pull request primarily focuses on improving the user experience and dependencies management in the cli/cli.go and go.mod files respectively. The most significant changes include the addition of a new package in the import statements, a new condition in the Run function to handle terminal input, and the inclusion of new dependencies in the go.mod file.

Changes to cli/cli.go:

  • Imported the golang.org/x/term package to handle terminal inputs.
  • Added a condition in the Run function to check if the input is from a terminal and return an error if no input file is specified.

Changes to go.mod:

  • Added golang.org/x/sys and golang.org/x/term as indirect dependencies to the project.

@catatsuy catatsuy force-pushed the feature_add_os_stdout_is_terminal branch 3 times, most recently from 4060bf0 to e37afd8 Compare March 20, 2024 08:47
@catatsuy catatsuy force-pushed the feature_add_os_stdout_is_terminal branch from e37afd8 to 08d0ecc Compare March 20, 2024 08:49
@catatsuy catatsuy merged commit e9d01f7 into master Mar 20, 2024
5 checks passed
@catatsuy catatsuy deleted the feature_add_os_stdout_is_terminal branch March 20, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant