Skip to content

Forteeに投稿されたプロポーザルデータをのURLを使ってダウンロード+表示するためのコマンドラインツールです.

License

Notifications You must be signed in to change notification settings

shunsock/fortee_proposal_cli

Repository files navigation

Fortee Proposal CLI

Overview

Forteeに投稿されたプロポーザルデータをのURLを使ってダウンロード+表示するためのコマンドラインツールです. URLを指定すると,プロポーザルデータをダウンロードします.以下のように動作します.

command example

ダウンロードされるプロポーザルデータは以下のようなJSON形式です.

{
  "title": "Readable 正規表現",
  "schedule": "2024/03/07 17:30〜",
  "track": "Track A",
  "speaker": "shunsock",
  "proposal_page_url": "https://fortee.jp/phperkaigi-2024/proposal/eff9589b-b603-4b23-aa35-42948443a80b",
  "og_image_url": "https://fortee.jp/phperkaigi-2024/proposal/og-image/eff9589b-b603-4b23-aa35-42948443a80b.png"
}

また,OGイメージもダウンロードされます.保存されたプロポーザルのJSONデータやOGイメージは以下の場所に保存されます.

$HOME/.fortee/html/proposal.json
$HOME/.fortee/image/og_image.{file_extension}

以下のようにコマンドラインで表示されるので,ここをコピー&ペーストすると楽に取得できます.

[notice] you can get data by running: cp /Users/shunsuke.tsuchiya/.fortee/json/proposal.json path/your/directory
[notice] you can get data by running: cp /Users/shunsuke.tsuchiya/.fortee/image/og_image.png path/your/directory

Warning

このツールは,fortee公式にはサポートされていません.自己責任で使用してください. また,これはテストバージョンです.正常に動作しない可能性があります.

Requirements

以下のソフトウェアのインストールを前提としています.

  • Git
  • Make

以下のソフトウェアは開発者向けのものです.

  • Cargo

Getting Started

fortee community cliのインストールはマニュアルで行う必要があります.

git clone https://github.com/shunsock/fortee_proposal_cli.git 
cd fortee_proposal_cli
make install
fortee -u https://fortee.jp/phperkaigi-2024/proposal/eff9589b-b603-4b23-aa35-42948443a80b

Usage

Download

git clone https://github.com/shunsock/fortee_proposal_cli.git

Install & Uninstall

make install
make uninstall

Help

fortee --help

Download proposal data

fortee -u {your_proposal_url_page}

(For Developer) Run All Rust Pre-Commit Checks

make watcher

(For Developer) Install Rust Pre-Commit Components (rustfmt, clippy, etc.)

make install-dev

(For Developer) Build Release Binary and Copy to bin Directory

make publish

Contribution

このプロジェクトには,バグレポートや機能提案,コードの改善などのコントリビューションを歓迎します.

Workflow

  1. Fork the repository
  2. Create Feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

Install Development Tools

brew install rustup
make install-dev

Confirm Rust Code

make watcher

Check Binary Action

make publish
make install
fortee -u https://fortee.jp/phperkaigi-2024/proposal/eff9589b-b603-4b23-aa35-42948443a80b

About

Forteeに投稿されたプロポーザルデータをのURLを使ってダウンロード+表示するためのコマンドラインツールです.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published