Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

info.rs 388 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. use anyhow::Result;
  2. use structopt::StructOpt;
  3. use log::*;
  4. use super::Command;
  5. use crate::db::DbOpts;
  6. /// Dump environment info for debugging
  7. #[derive(StructOpt, Debug)]
  8. #[structopt(name="info")]
  9. pub struct Info {
  10. #[structopt(flatten)]
  11. db: DbOpts
  12. }
  13. impl Command for Info {
  14. fn exec(self) -> Result<()> {
  15. let url = self.db.url()?;
  16. info!("DB_URL: {}", url);
  17. Ok(())
  18. }
  19. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...