hackmdio / hackmdio/hackmd-cli

Feature Request: Change the permission of a note

未關閉
#21 1 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
TypeScript
星號
176
分支
13
平均合併
1 天 4 小時
30 天內合併 PR
5

描述

There is no easy way to change note's permission in mass. While I can mass import Markdown note with this CLI, I cannot seem to control the permission of those notes with CLI. And it is a painstakingly long process to do it one-by-one on the web GUI.

It would be great if there is a command like this:
```
hackmd-cli chmod [NOTEID] [[-r|--readable] [owner|login|everyone]] [[-w|--writable] [owner|login|everyone]]
```

Example,
```
$ hackmd-cli chmod some-note-id -r everyone -w login
Permission of your note https://hackmd.io/some-note-id has changed.
Readable: everyone
Writable: login
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先檢查現有的 CLI 路徑,了解其如何大量匯入 Markdown 筆記以及如何處理筆記識別碼。接著確認提議的 chmod 引數如何對應至 HackMD 權限,並驗證命令的成功輸出,以及擁有者、登入使用者和所有人的可讀/可寫設定。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
authorization, cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。