Skip to content

lsコマンドを作る5#9

Open
1mori wants to merge 10 commits intomainfrom
my-ls-5
Open

lsコマンドを作る5#9
1mori wants to merge 10 commits intomainfrom
my-ls-5

Conversation

@1mori
Copy link
Copy Markdown
Owner

@1mori 1mori commented Jun 24, 2024

関連ページ

https://bootcamp.fjord.jp/practices/160

最終更新日

2024/06/24

やりたいこと

  • -a, -r, -lオプションを指定できるlsコマンドを作成する
  • それぞれのオプションは複数、順不同で指定できる必要がある
    • 例: -ar -al -lr -ral -alr

やったこと

  • lsコマンドを作る2, 3の課題で作成した-a, -rオプションをcherry-pickを用いて改めてコードを書くことなく実装した
  • lsコマンドを作る4の課題は変更点が多く、margeなどすると2, 3の変更点が潰れることが考えられたため、コピーして解答箇所を取り入れた
  • options = opt.getopts(ARGV, 'arl')と書くことで複数、順不同のオプションに対応した

やらなかったこと

  • margeを用いてlsコマンド4の変更点を取り入れなかったこと
  • 2~4で作成したロジックに対する変更

Copy link
Copy Markdown

@yoshitsugu yoshitsugu left a comment

Choose a reason for hiding this comment

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

OKです!

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.

2 participants