Skip to content

j1g0/file-mover-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

file-mover-cli

file-mover-cliλŠ” ν˜„μž¬ λ””λ ‰ν† λ¦¬μ˜ 파일 쀑 νŠΉμ • ν™•μž₯자λ₯Ό κ°€μ§„ νŒŒμΌλ“€μ„ 미리 μ„€μ •ν•œ 경둜둜 μ΄λ™ν•˜λŠ” Go 기반 CLI λ„κ΅¬μž…λ‹ˆλ‹€.
κ°„λ‹¨ν•œ μ„€μ •λ§ŒμœΌλ‘œ ν™•μž₯μžλ³„ 폴더 정리λ₯Ό μžλ™ν™”ν•  수 μžˆμŠ΅λ‹ˆλ‹€.


πŸ”§ μ„€μΉ˜

Goκ°€ μ„€μΉ˜λœ ν™˜κ²½μ—μ„œ 직접 λΉŒλ“œν•  수 μžˆμŠ΅λ‹ˆλ‹€.

go build -o file-mover-cli ./cmd/file-mover-cli

🧩 μ‚¬μš©λ²•

file-mover-cli [options] <command>

πŸ“˜ λͺ…λ Ήμ–΄

λͺ…λ Ήμ–΄ μ„€λͺ…
set ν™•μž₯μžλ³„ 이동 경둜λ₯Ό μ„€μ •ν•©λ‹ˆλ‹€. 예: jpg:/images
run ν˜„μž¬ λ””λ ‰ν† λ¦¬μ˜ νŒŒμΌμ„ 섀정에 따라 μ΄λ™μ‹œν‚΅λ‹ˆλ‹€
dry-run μ‹€μ œ 이동 없이 μ–΄λ–€ μž‘μ—…μ΄ μˆ˜ν–‰λ μ§€λ₯Ό 좜λ ₯ν•©λ‹ˆλ‹€
list μ„€μ •λœ ν™•μž₯자-경둜 맀핑을 좜λ ₯ν•©λ‹ˆλ‹€
help μ‚¬μš©λ²•μ„ 좜λ ₯ν•©λ‹ˆλ‹€

βš™οΈ μ˜΅μ…˜

μ˜΅μ…˜ μ„€λͺ…
--config <file> μ„€μ • 파일 경둜λ₯Ό μ§€μ •ν•©λ‹ˆλ‹€. μ§€μ •ν•˜μ§€ μ•ŠμœΌλ©΄ κΈ°λ³Έ 경둜(~/.file-mover-cli/config.yml)λ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€.

πŸ“‚ μ˜ˆμ‹œ

# ν™•μž₯자 λ§€ν•‘ μ„€μ •
file-mover-cli set jpg:/img png:/img --config ./my-config.yml

# μ„€μ •λœ κ²½λ‘œμ— 파일 이동 μ‹€ν–‰
file-mover-cli run --config ./my-config.yml

# μ‹€μ œ 이동은 ν•˜μ§€ μ•Šκ³  μ–΄λ–€ λ™μž‘μ΄ 될지 확인
file-mover-cli dry-run --config ./my-config.yml

# ν˜„μž¬ μ„€μ • λͺ©λ‘ 확인
file-mover-cli list --config ./my-config.yml

πŸ“ μ„€μ • 파일 μ˜ˆμ‹œ (config.yml)

mappings:
  jpg: /Users/you/Pictures
  png: /Users/you/Pictures
  pdf: /Users/you/Documents

πŸ—‚οΈ κΈ°λ³Έ μ„€μ • 경둜

  • macOS/Linux: ~/.file-mover-cli/config.yml
  • Windows: %USERPROFILE%\.file-mover-cli\config.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages