Giter Club home page Giter Club logo

Comments (10)

yehohanan7 avatar yehohanan7 commented on August 19, 2024 2

Hi @GrayJack, not sure if @FrancisMurillo is working on this. I had few hours to work on this one, please review the PR -#125

from coreutils.

lynnpepin avatar lynnpepin commented on August 19, 2024 1

Understood! Focusing on the -f flag

from coreutils.

FrancisMurillo avatar FrancisMurillo commented on August 19, 2024

Hi, planning to work on this issue. Planning to do the following:

  1. Create a branch, cli/seq from master
  2. Create a seq member based on sleep
  3. Replicate man seq in terms of options and documentation
  4. Write code

Any other advice or guidelines such as testing as well?

from coreutils.

GrayJack avatar GrayJack commented on August 19, 2024

Yes one advice

Always drop manually everything that needs to when std::process::exit()

As for testing, I do not have something more strict because we have lots of stuff that the result depends on the running system configuration, and I have no idea how to create tests for these cases.

But overall, everything that are not those cases, I would like tests cases. I usually give very descriptive names for test functions like <function name>_<case>

Example:
I have a function called myfunc that takes one bool parameter, so my test function names would be myfunc_true and myfunc_false

I guess that's all that I can think on top of my head

Have fun with the project 😄

from coreutils.

GrayJack avatar GrayJack commented on August 19, 2024

Just missing -f flag now

from coreutils.

GrayJack avatar GrayJack commented on August 19, 2024

I just notice that when all 3 args are the same (1 1 1, or 2 2 2) it wont print the value

With default seq

seq 1 1 1

Has output of
1

this version only exit without showing the number

from coreutils.

lynnpepin avatar lynnpepin commented on August 19, 2024

Heya, I'd like to take a crack at adding the -f flag and fixing this behavior so seq 1 1 1 operates as expected!

from coreutils.

lynnpepin avatar lynnpepin commented on August 19, 2024

Hi @GrayJack I couldn't reproduce the 1 1 1 problem from the dev branch.

Running seq 1 1 1 returns 1, as expected, when built using MacOS and Linux targets.

from coreutils.

GrayJack avatar GrayJack commented on August 19, 2024

Hi @lynnpepin, I believe the error in the behavior was fixed on PR #154 , but the -f flag remains unimplemented

Sorry, I forgot to mention here that the issue was fixed.

from coreutils.

lynnpepin avatar lynnpepin commented on August 19, 2024

Hey @GrayJack I'm going to call it quits on implementing -f. Couldn't figure it out, and I've definitely overcommited a bit! I think I need to tackle some more Rust before trying again.

As it stands, a good first issue for anyone else!

from coreutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.