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 dataset sub-command #1

Merged
merged 10 commits into from
Aug 4, 2020
Merged

Add dataset sub-command #1

merged 10 commits into from
Aug 4, 2020

Conversation

hirosassa
Copy link
Owner

I implemented dataset subcommand that extracts permissions of the input user for each dataset.

usage:

$ bqiam dataset abc@sample.com
sample-prj sample-ds1 OWNER
sample-prj sample-ds2 READER
...

@to-lz1
Copy link

to-lz1 commented Aug 3, 2020

Is cmd/hirohito.sasakawa@m3-2019mac05.local.63246 OK to be included in this PR?

(if this is meta data cache file, perhaps its name should be listed in .gitignore)

@to-lz1
Copy link

to-lz1 commented Aug 3, 2020

We really appreciate it if sample .bqiam.toml format is documented somewhere!

@hirosassa
Copy link
Owner Author

Is cmd/hirohito.sasakawa@m3-2019mac05.local.63246 OK to be included in this PR?

(if this is meta data cache file, perhaps its name should be listed in .gitignore)

Thanks! This is my mistake and removed!

cmd/cache.go Outdated
if err != nil {
fmt.Println("Failed to fetch cache: %s", err)
}
fmt.Println("dataset meta data are cached to %s", config.CacheFile)
Copy link
Contributor

Choose a reason for hiding this comment

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

fmt.Printf ?

Copy link
Owner Author

Choose a reason for hiding this comment

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

fixed!

cmd/cache.go Outdated
}
err := metas.Save(config.CacheFile)
if err != nil {
fmt.Println("Failed to fetch cache: %s", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

You mean Faile to save cache ?

and, need to return ?

Is this message below correct?

$ ./bqiam cache

Failed to fetch cache: %s Failed to save meta data cache file. err: open ~/.bqiam-cache-file.toml: no such file or directory
dataset meta data are cached to %s ~/.bqiam-cache-file.toml

Copy link
Owner Author

Choose a reason for hiding this comment

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

You're right! I fixed this implementation. Please check

Copy link
Contributor

Choose a reason for hiding this comment

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

@hirosassa LGTM. Thanks!

@hirosassa hirosassa merged commit b4c7cf6 into master Aug 4, 2020
@hirosassa hirosassa deleted the add-dataset branch August 17, 2020 10:27
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.

None yet

3 participants