Coder Social home page Coder Social logo

Display Ubuntu nickname about macchina HOT 12 CLOSED

macchina-cli avatar macchina-cli commented on September 7, 2024
Display Ubuntu nickname

from macchina.

Comments (12)

grtcdr avatar grtcdr commented on September 7, 2024 1

Ah, great, thanks !

Of course 🚀

How about submitting an issue upstream ? I'm sure they would be glad to fix it !

I'm sort of busy right now, but I guess I can do it when I find the time.

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024

Deal, can you send me a screenshot of /etc/os-release so I can see which field contains the nickname?

from macchina.

ngirard avatar ngirard commented on September 7, 2024

Sure, I'll even attach a copy if the file to this issue.

But you might not even need it, since there's a dedicated crate from the folks behind Pop!OS for parsing this file.

The info I was referring to is contained in the version field.

os-release.zip

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024

But you might not even need it, since there's a dedicated crate from the folks behind Pop!OS for parsing this file.

We already use it :)

In their docs examples they seem to have mixed up the values of VERSION with VERSION_ID.

VERSION_ID is always just the version, VERSION is the one that contain extra text such as (Focal Fossa).

I've already pushed this change to libmacchina Macchina-CLI/libmacchina@973856d, the next release will use VERSION over VERSION_ID whenever possibe (unlike what the commit message says)

from macchina.

ngirard avatar ngirard commented on September 7, 2024

Ah, great, thanks !

How about submitting an issue upstream ? I'm sure they would be glad to fix it !

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024

Hey there! Cobalt should fix your issue.

Have a great one 🍻

from macchina.

ngirard avatar ngirard commented on September 7, 2024

Hehe, indeed, thanks !
Adopted !

macchina --no-ascii --theme Boron --no-box --bar --box-title "" -X Host -X Machine -X Kernel -X Distribution -X Packages -X LocalIP -X Uptime -X ProcessorUsage -X Memory --spacing 1

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024
macchina --no-ascii --theme Boron --no-box --bar --box-title "" -X Host -X Machine -X Kernel -X Distribution -X Packages -X LocalIP -X Uptime -X ProcessorUsage -X Memory --spacing 1

Hehe, indeed, thanks !
You're welcome 🍻

There's no need to use -X multiple times, you can use it once like this:

macchina -X battery processusage

You can also use --no-title instead of --box-title "".

from macchina.

ngirard avatar ngirard commented on September 7, 2024

There's no need to use -X multiple times

Thanks for your feedback. It would be worth adding to the CLI help, because intuitively I first tried -X Package1,Package2 and didn't expect space as a separator.

You can also use --no-title instead of --box-title "".

Noted, thanks !

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024

Thanks for your feedback. It would be worth adding to the CLI help, because intuitively I first tried -X Package1,Package2 and didn't expect space as a separator.

You're right, but once you use one Rust cli tool, they're all very similar, as we all use clap and structopt, and space is by default the options separator.

from macchina.

ngirard avatar ngirard commented on September 7, 2024

once you use one Rust cli tool, they're all very similar, as we all use clap and structopt, and space is by default the options separator.

I'd respectfully disagree ;-) As first counterexample out of my mind: Navi

from macchina.

grtcdr avatar grtcdr commented on September 7, 2024

Notice I said "default", because clap does let you require a delimiter for certain subcommands flags, but we don't require any delimiters, to let you do what you need to do, without typing as much.

from macchina.

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.