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

CLI tool #106

Closed
shibumi opened this issue May 17, 2021 · 3 comments
Closed

CLI tool #106

shibumi opened this issue May 17, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@shibumi
Copy link
Collaborator

shibumi commented May 17, 2021

Please fill in the fields below to submit an issue or feature request. The
more information that is provided, the better.

People at Kubecon 2021 mentioned that they want a CLI tool for in-toto-golang. There is a cli tool for testing in one of our forks. We should adopt it.

Description of issue or feature request:

Provide a cli tool via a separate cmd directory.

Current behavior:

This repository just provides a library.

Expected behavior:

This library should also provide a cli tool with basic functionality.

@shibumi shibumi added enhancement New feature or request good first issue Good for newcomers labels May 17, 2021
@adityasaky
Copy link
Member

Curious, are they using in-toto-golang already and therefore don't want to install in-toto-python because it's redundant?

I believe the CLI you're referring to is: https://github.com/boxboat/in-toto-golang/tree/master/in_toto/cmd

@shibumi
Copy link
Collaborator Author

shibumi commented Jun 20, 2021

@adityasaky yes, I am referring to this CLI. As far as I know the CLI was just there for easier testing and I really like the idea of having a CLI for integration tests and so on. I think with a CLI we could much easier test if the go library produces the same result like the in-toto cli.

EDIT: Additionally, the go cli would be much easier to install than the python cli. For python you need the python interpreter + pulling all that dependencies, this is a problem on some systems (not all systems provide python). A go program can however be easily cross-compiled for different systems.

EDIT2: I don't have a exact use case for this. Maybe routers that run an in-toto binary to verify an upgrade?

@shibumi shibumi self-assigned this Jun 22, 2021
@adityasaky adityasaky mentioned this issue Sep 13, 2021
2 tasks
@adityasaky
Copy link
Member

Closed by #56.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants