Skip to content

Demo changes#8

Merged
Daniel-Amsellem merged 12 commits into
masterfrom
dev
Apr 16, 2020
Merged

Demo changes#8
Daniel-Amsellem merged 12 commits into
masterfrom
dev

Conversation

@Daniel-Amsellem

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cmd/main.go
// "bin/ast.exe" -v scan create --inputFile ./internal/commands/payloads/uploads.json --sources ./internal/commands/payloads/sources.zip
// "bin/ast.exe" scan get --id 4d9a9189-ddcc-4aa0-ba2f-9d6d7f92eceb
// "bin/ast.exe" -v scan create --input-file ./internal/commands/payloads/uploads.json --sources ./internal/commands/payloads/sources.zip
// "bin/ast.exe" scan list 4d9a9189-ddcc-4aa0-ba2f-9d6d7f92eceb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list is for get scans not get by id, isn't it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so it looks like this is for get by id. why is there an id after?


func getCredentialsPayload(accessKeyID, accessKeySecret string) string {
return fmt.Sprintf("grant_type=client_credentials&client_id=%s&client_secret=%s", accessKeyID, accessKeySecret)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!! :)

*projectsRESTApi.SlicedProjectsResponseModel,
*projectsRESTApi.ErrorModel, error) {
resp, err := getRequestWithLimitAndOffset(p.url, limit, offset)
resp, err := SendHTTPRequestWithLimitAndOffset(http.MethodGet, p.url, limit, offset, nil)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will probably need the filters too, in the future

if err != nil {
return nil, nil, err
}
if err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why twice?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch :)

@Daniel-Amsellem Daniel-Amsellem merged commit b279986 into master Apr 16, 2020
thtri referenced this pull request in thtri/ast-cli Apr 19, 2024
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.

4 participants