Skip to content

Commit aec56ba

Browse files
authored
Merge pull request #843 from watermint/current
Release 135
2 parents 809d41d + 272e29f commit aec56ba

File tree

568 files changed

+8922
-8348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

568 files changed

+8922
-8348
lines changed

README.md

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -120,31 +120,21 @@ Usage:
120120
Available commands:
121121
===================
122122
123-
| Command | Description | Notes |
124-
|--------------|---------------------------------|-------|
125-
| asana | Asana commands | |
126-
| config | CLI configuration | |
127-
| deepl | DeepL commands | |
128-
| dropbox | Dropbox commands | |
129-
| figma | Figma commands | |
130-
| file | File operation | |
131-
| filerequest | File request operation | |
132-
| github | GitHub commands | |
133-
| google | Google commands | |
134-
| group | Group management | |
135-
| license | Show license information | |
136-
| local | Commands for local PC | |
137-
| log | Log utilities | |
138-
| member | Team member management | |
139-
| services | Commands for services | |
140-
| sharedfolder | Shared folder | |
141-
| sharedlink | Shared Link of Personal account | |
142-
| slack | Slack commands | |
143-
| team | Commands of Dropbox for teams | |
144-
| teamfolder | Team folder management | |
145-
| teamspace | Team space commands | |
146-
| util | Utilities | |
147-
| version | Show version | |
123+
| Command | Description | Notes |
124+
|-----------|--------------------------|-------|
125+
| asana | Asana commands | |
126+
| config | CLI configuration | |
127+
| deepl | DeepL commands | |
128+
| dropbox | Dropbox commands | |
129+
| figma | Figma commands | |
130+
| github | GitHub commands | |
131+
| license | Show license information | |
132+
| local | Commands for local PC | |
133+
| log | Log utilities | |
134+
| slack | Slack commands | |
135+
| teamspace | Team space commands | |
136+
| util | Utilities | |
137+
| version | Show version | |
148138
149139
```
150140

@@ -187,6 +177,7 @@ Available commands:
187177
| [dropbox file search content](docs/commands/dropbox-file-search-content.md) | Search file content |
188178
| [dropbox file search name](docs/commands/dropbox-file-search-name.md) | Search file name |
189179
| [dropbox file share info](docs/commands/dropbox-file-share-info.md) | Retrieve sharing information of the file |
180+
| [dropbox file sharedfolder info](docs/commands/dropbox-file-sharedfolder-info.md) | Get shared folder info |
190181
| [dropbox file sharedfolder leave](docs/commands/dropbox-file-sharedfolder-leave.md) | Leave from the shared folder |
191182
| [dropbox file sharedfolder list](docs/commands/dropbox-file-sharedfolder-list.md) | List shared folder(s) |
192183
| [dropbox file sharedfolder member add](docs/commands/dropbox-file-sharedfolder-member-add.md) | Add a member to the shared folder |

README_ja.md

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -120,31 +120,21 @@ Dropbox用ツールとDropbox for teams
120120
利用可能なコマンド:
121121
===================
122122
123-
| コマンド | 説明 | 備考 |
124-
|--------------|-----------------------------|------|
125-
| asana | Asanaのコマンド | |
126-
| config | CLI設定 | |
127-
| deepl | DeepLコマンド | |
128-
| dropbox | Dropboxコマンド | |
129-
| figma | フィグマコマンド | |
130-
| file | ファイル操作 | |
131-
| filerequest | ファイルリクエストの操作 | |
132-
| github | GitHubコマンド | |
133-
| google | Google コマンド | |
134-
| group | グループ管理 | |
135-
| license | ライセンス情報を表示します | |
136-
| local | ローカルPC用コマンド | |
137-
| log | ログユーティリティ | |
138-
| member | チームメンバーの管理 | |
139-
| services | 各種サービス向けコマンド | |
140-
| sharedfolder | 共有フォルダ | |
141-
| sharedlink | 個人アカウントの共有リンク | |
142-
| slack | Slack コマンド | |
143-
| team | チーム向けDropboxのコマンド | |
144-
| teamfolder | チームフォルダの管理 | |
145-
| teamspace | チームスペースコマンド | |
146-
| util | ユーティリティー | |
147-
| version | バージョン情報 | |
123+
| コマンド | 説明 | 備考 |
124+
|-----------|----------------------------|------|
125+
| asana | Asanaのコマンド | |
126+
| config | CLI設定 | |
127+
| deepl | DeepLコマンド | |
128+
| dropbox | Dropboxコマンド | |
129+
| figma | フィグマコマンド | |
130+
| github | GitHubコマンド | |
131+
| license | ライセンス情報を表示します | |
132+
| local | ローカルPC用コマンド | |
133+
| log | ログユーティリティ | |
134+
| slack | Slack コマンド | |
135+
| teamspace | チームスペースコマンド | |
136+
| util | ユーティリティー | |
137+
| version | バージョン情報 | |
148138
149139
```
150140

@@ -187,6 +177,7 @@ Dropbox用ツールとDropbox for teams
187177
| [dropbox file search content](docs/ja/commands/dropbox-file-search-content.md) | ファイルコンテンツを検索 |
188178
| [dropbox file search name](docs/ja/commands/dropbox-file-search-name.md) | ファイル名を検索 |
189179
| [dropbox file share info](docs/ja/commands/dropbox-file-share-info.md) | ファイルの共有情報を取得する |
180+
| [dropbox file sharedfolder info](docs/ja/commands/dropbox-file-sharedfolder-info.md) | 共有フォルダ情報の取得 |
190181
| [dropbox file sharedfolder leave](docs/ja/commands/dropbox-file-sharedfolder-leave.md) | 共有フォルダーから退出する. |
191182
| [dropbox file sharedfolder list](docs/ja/commands/dropbox-file-sharedfolder-list.md) | 共有フォルダの一覧 |
192183
| [dropbox file sharedfolder member add](docs/ja/commands/dropbox-file-sharedfolder-member-add.md) | 共有フォルダへのメンバーの追加 |

catalogue/citron.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
package sharedfolder
2+
3+
import (
4+
"github.com/watermint/toolbox/domain/dropbox/api/dbx_auth"
5+
"github.com/watermint/toolbox/domain/dropbox/api/dbx_conn"
6+
"github.com/watermint/toolbox/domain/dropbox/model/mo_sharedfolder"
7+
"github.com/watermint/toolbox/domain/dropbox/service/sv_sharedfolder"
8+
"github.com/watermint/toolbox/infra/control/app_control"
9+
"github.com/watermint/toolbox/infra/recipe/rc_exec"
10+
"github.com/watermint/toolbox/infra/recipe/rc_recipe"
11+
"github.com/watermint/toolbox/infra/report/rp_model"
12+
)
13+
14+
type Info struct {
15+
Peer dbx_conn.ConnScopedIndividual
16+
SharedFolderId string
17+
Policies rp_model.RowReport
18+
}
19+
20+
func (z *Info) Preset() {
21+
z.Peer.SetScopes(
22+
dbx_auth.ScopeSharingRead,
23+
)
24+
z.Policies.SetModel(
25+
&mo_sharedfolder.SharedFolder{},
26+
rp_model.HiddenColumns(
27+
"parent_shared_folder_id",
28+
"owner_team_id",
29+
),
30+
)
31+
}
32+
33+
func (z *Info) Exec(c app_control.Control) error {
34+
c.Log().Debug("Scanning folders")
35+
folder, err := sv_sharedfolder.New(z.Peer.Client()).Resolve(z.SharedFolderId)
36+
if err != nil {
37+
return err
38+
}
39+
40+
if err := z.Policies.Open(); err != nil {
41+
return err
42+
}
43+
44+
z.Policies.Row(folder)
45+
return nil
46+
}
47+
48+
func (z *Info) Test(c app_control.Control) error {
49+
return rc_exec.ExecMock(c, &Info{}, func(r rc_recipe.Recipe) {
50+
m := r.(*Info)
51+
m.SharedFolderId = "1234567890"
52+
})
53+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package sharedfolder
2+
3+
import (
4+
"github.com/watermint/toolbox/quality/recipe/qtr_endtoend"
5+
"testing"
6+
)
7+
8+
func TestSharedFolder_Exec(t *testing.T) {
9+
qtr_endtoend.TestRecipe(t, &Info{})
10+
}

docs/_posts/2022-07-16-release-103.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/_posts/2024-06-06-release-134.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,32 @@
22
layout: post
33
title: Release 134
44
lang: en
5-
release_page: https://github.com/watermint/toolbox/releases/latest
5+
release_page: https://github.com/watermint/toolbox/releases/tag/134.8.227
66
release: 134
77
---
88

9+
# Release theme
10+
911
* #830 : bug fix of `dropbox sign request list` and `dropbox sign request signature list` commands
12+
13+
# Changes
14+
15+
* [Specification changes](https://github.com/watermint/toolbox/blob/134.8.227/docs/releases/changes134.md) (English)
16+
* [Specification changes](https://github.com/watermint/toolbox/blob/134.8.227/docs/releases/changes134.md) (日本語)
17+
18+
# Documents
19+
20+
* [README.md](https://github.com/watermint/toolbox/blob/134.8.227/README.md) (English)
21+
* [README_ja.md](https://github.com/watermint/toolbox/blob/134.8.227/README_ja.md) (日本語)
22+
23+
# Binary
24+
25+
| File name | File size | MD5 hash | SHA256 hash |
26+
|------------------------------------|-----------|----------------------------------|------------------------------------------------------------------|
27+
| tbx-134.8.227-linux-arm.zip | 19857132 | e8e5d7522809c8093d6500e7aa721753 | de72600bfc007427411e00acc02200bba9fa8e5811133fedc742288670ffcd52 |
28+
| tbx-134.8.227-linux-intel.zip | 20997885 | 06bb1a75f34e85b356c94a1ef1ad39a0 | 079e3238acef06eb7349d6d6bffb8f0613012297c5de7fcc4f4e1470c6b773fd |
29+
| tbx-134.8.227-mac-applesilicon.zip | 20878824 | dac79145470ca398852429f150327195 | 28651062303cc579b59fd0511d25321f7a67ea1bd5384f24708c1f49af0addeb |
30+
| tbx-134.8.227-mac-intel.zip | 21691828 | c9d54f0d8fc21f01d8c314fed1c7c32b | 2bfa7054124cb848826a55b1308fcec59463b3ffd08a6f1344baf005cbfa9f74 |
31+
| tbx-134.8.227-win.zip | 21204311 | 7eb7ed30965140ee15642c7452ab5d8f | bb02d4b09102e24eb4bee0f7ac4106ee280dac0ff93cd156afd79481348c5a7a |
32+
33+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: post
3+
title: Release 135
4+
lang: en
5+
release_page: https://github.com/watermint/toolbox/releases/latest
6+
release: 135
7+
---
8+
9+
* Remove deprecated commands as announced in #835, #796
10+
* Remove alias of old command paths as announced in #797, #799
11+

0 commit comments

Comments
 (0)